diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-12-15 17:13:26 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-12-15 17:13:26 -0500 |
commit | 7e1548a597ef7e26d5d62f8be3be6da9e101b26c (patch) | |
tree | fe6cbf4d9a3c1afdba04fb276fef0f932403727c /arch/arm/mach-omap2/board-h4.c | |
parent | 1f7f569c0ae6e619504095eabf796edd712d943d (diff) | |
parent | 2619bc327417f549f1c89d5ef9b4a4aa768f41a2 (diff) |
Merge branch 'omap3-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 into devel
Diffstat (limited to 'arch/arm/mach-omap2/board-h4.c')
-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) |