diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-h4.c')
-rw-r--r-- | arch/arm/mach-omap2/board-h4.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 2fef2c845083..5e9b14675b1e 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> |
@@ -372,31 +373,33 @@ static struct omap_uart_config h4_uart_config __initdata = { | |||
372 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | 373 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), |
373 | }; | 374 | }; |
374 | 375 | ||
375 | static struct omap_mmc_config h4_mmc_config __initdata = { | ||
376 | .mmc [0] = { | ||
377 | .enabled = 1, | ||
378 | .wire4 = 1, | ||
379 | .wp_pin = -1, | ||
380 | .power_pin = -1, | ||
381 | .switch_pin = -1, | ||
382 | }, | ||
383 | }; | ||
384 | |||
385 | static struct omap_lcd_config h4_lcd_config __initdata = { | 376 | static struct omap_lcd_config h4_lcd_config __initdata = { |
386 | .ctrl_name = "internal", | 377 | .ctrl_name = "internal", |
387 | }; | 378 | }; |
388 | 379 | ||
389 | static struct omap_board_config_kernel h4_config[] = { | 380 | static struct omap_board_config_kernel h4_config[] = { |
390 | { OMAP_TAG_UART, &h4_uart_config }, | 381 | { OMAP_TAG_UART, &h4_uart_config }, |
391 | { OMAP_TAG_MMC, &h4_mmc_config }, | ||
392 | { OMAP_TAG_LCD, &h4_lcd_config }, | 382 | { OMAP_TAG_LCD, &h4_lcd_config }, |
393 | }; | 383 | }; |
394 | 384 | ||
385 | static struct at24_platform_data m24c01 = { | ||
386 | .byte_len = SZ_1K / 8, | ||
387 | .page_size = 16, | ||
388 | }; | ||
389 | |||
395 | static struct i2c_board_info __initdata h4_i2c_board_info[] = { | 390 | static struct i2c_board_info __initdata h4_i2c_board_info[] = { |
396 | { | 391 | { |
397 | I2C_BOARD_INFO("isp1301_omap", 0x2d), | 392 | I2C_BOARD_INFO("isp1301_omap", 0x2d), |
398 | .irq = OMAP_GPIO_IRQ(125), | 393 | .irq = OMAP_GPIO_IRQ(125), |
399 | }, | 394 | }, |
395 | { /* EEPROM on mainboard */ | ||
396 | I2C_BOARD_INFO("24c01", 0x52), | ||
397 | .platform_data = &m24c01, | ||
398 | }, | ||
399 | { /* EEPROM on cpu card */ | ||
400 | I2C_BOARD_INFO("24c01", 0x57), | ||
401 | .platform_data = &m24c01, | ||
402 | }, | ||
400 | }; | 403 | }; |
401 | 404 | ||
402 | static void __init omap_h4_init(void) | 405 | static void __init omap_h4_init(void) |