diff options
-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) |