diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-n8x0.c')
-rw-r--r-- | arch/arm/mach-omap2/board-n8x0.c | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index aead77a4bc6d..97767a27ca9d 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include "mmc.h" | 33 | #include "mmc.h" |
34 | #include "soc.h" | 34 | #include "soc.h" |
35 | #include "gpmc-onenand.h" | 35 | #include "gpmc-onenand.h" |
36 | #include "common-board-devices.h" | ||
36 | 37 | ||
37 | #define TUSB6010_ASYNC_CS 1 | 38 | #define TUSB6010_ASYNC_CS 1 |
38 | #define TUSB6010_SYNC_CS 4 | 39 | #define TUSB6010_SYNC_CS 4 |
@@ -568,29 +569,14 @@ static int n8x0_menelaus_late_init(struct device *dev) | |||
568 | } | 569 | } |
569 | #endif | 570 | #endif |
570 | 571 | ||
571 | static struct menelaus_platform_data n8x0_menelaus_platform_data __initdata = { | 572 | struct menelaus_platform_data n8x0_menelaus_platform_data __initdata = { |
572 | .late_init = n8x0_menelaus_late_init, | 573 | .late_init = n8x0_menelaus_late_init, |
573 | }; | 574 | }; |
574 | 575 | ||
575 | static struct i2c_board_info __initdata n8x0_i2c_board_info_1[] __initdata = { | 576 | struct aic3x_pdata n810_aic33_data __initdata = { |
576 | { | ||
577 | I2C_BOARD_INFO("menelaus", 0x72), | ||
578 | .irq = 7 + OMAP_INTC_START, | ||
579 | .platform_data = &n8x0_menelaus_platform_data, | ||
580 | }, | ||
581 | }; | ||
582 | |||
583 | static struct aic3x_pdata n810_aic33_data __initdata = { | ||
584 | .gpio_reset = 118, | 577 | .gpio_reset = 118, |
585 | }; | 578 | }; |
586 | 579 | ||
587 | static struct i2c_board_info n810_i2c_board_info_2[] __initdata = { | ||
588 | { | ||
589 | I2C_BOARD_INFO("tlv320aic3x", 0x18), | ||
590 | .platform_data = &n810_aic33_data, | ||
591 | }, | ||
592 | }; | ||
593 | |||
594 | static int __init n8x0_late_initcall(void) | 580 | static int __init n8x0_late_initcall(void) |
595 | { | 581 | { |
596 | if (!board_caps) | 582 | if (!board_caps) |
@@ -612,11 +598,5 @@ void * __init n8x0_legacy_init(void) | |||
612 | board_check_revision(); | 598 | board_check_revision(); |
613 | spi_register_board_info(n800_spi_board_info, | 599 | spi_register_board_info(n800_spi_board_info, |
614 | ARRAY_SIZE(n800_spi_board_info)); | 600 | ARRAY_SIZE(n800_spi_board_info)); |
615 | i2c_register_board_info(0, n8x0_i2c_board_info_1, | ||
616 | ARRAY_SIZE(n8x0_i2c_board_info_1)); | ||
617 | if (board_is_n810()) | ||
618 | i2c_register_board_info(1, n810_i2c_board_info_2, | ||
619 | ARRAY_SIZE(n810_i2c_board_info_2)); | ||
620 | |||
621 | return &mmc1_data; | 601 | return &mmc1_data; |
622 | } | 602 | } |