diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-12-10 20:36:33 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-12-10 20:36:33 -0500 |
commit | 6a769ed40aab1c93ed211287bcdcebfccc9972f5 (patch) | |
tree | bb6af77ce1129af7098a28ca60f8d6b8cb3fafee /arch | |
parent | 84a34344ea1f2f313d84a9fb4cb685b65a6ec26d (diff) |
ARM: OMAP2: bard-h4: list those eeproms
Declare the two 1Kbit EEPROMs included in the H4 board stack.
One is on the CPU card; the other is on the mainboard.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/board-h4.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 2fef2c845083..7de0506e1e29 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/delay.h> | 19 | #include <linux/delay.h> |
20 | #include <linux/workqueue.h> | 20 | #include <linux/workqueue.h> |
21 | #include <linux/i2c.h> | 21 | #include <linux/i2c.h> |
22 | #include <linux/i2c/at24.h> | ||
22 | #include <linux/input.h> | 23 | #include <linux/input.h> |
23 | #include <linux/err.h> | 24 | #include <linux/err.h> |
24 | #include <linux/clk.h> | 25 | #include <linux/clk.h> |
@@ -392,11 +393,24 @@ static struct omap_board_config_kernel h4_config[] = { | |||
392 | { OMAP_TAG_LCD, &h4_lcd_config }, | 393 | { OMAP_TAG_LCD, &h4_lcd_config }, |
393 | }; | 394 | }; |
394 | 395 | ||
396 | static struct at24_platform_data m24c01 = { | ||
397 | .byte_len = SZ_1K / 8, | ||
398 | .page_size = 16, | ||
399 | }; | ||
400 | |||
395 | static struct i2c_board_info __initdata h4_i2c_board_info[] = { | 401 | static struct i2c_board_info __initdata h4_i2c_board_info[] = { |
396 | { | 402 | { |
397 | I2C_BOARD_INFO("isp1301_omap", 0x2d), | 403 | I2C_BOARD_INFO("isp1301_omap", 0x2d), |
398 | .irq = OMAP_GPIO_IRQ(125), | 404 | .irq = OMAP_GPIO_IRQ(125), |
399 | }, | 405 | }, |
406 | { /* EEPROM on mainboard */ | ||
407 | I2C_BOARD_INFO("24c01", 0x52), | ||
408 | .platform_data = &m24c01, | ||
409 | }, | ||
410 | { /* EEPROM on cpu card */ | ||
411 | I2C_BOARD_INFO("24c01", 0x57), | ||
412 | .platform_data = &m24c01, | ||
413 | }, | ||
400 | }; | 414 | }; |
401 | 415 | ||
402 | static void __init omap_h4_init(void) | 416 | static void __init omap_h4_init(void) |