diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-4430sdp.c')
-rw-r--r-- | arch/arm/mach-omap2/board-4430sdp.c | 75 |
1 files changed, 8 insertions, 67 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index bad5d5a5ef79..2ceb75d21eb2 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -372,11 +372,17 @@ static struct platform_device sdp4430_vbat = { | |||
372 | }, | 372 | }, |
373 | }; | 373 | }; |
374 | 374 | ||
375 | static struct platform_device sdp4430_dmic_codec = { | ||
376 | .name = "dmic-codec", | ||
377 | .id = -1, | ||
378 | }; | ||
379 | |||
375 | static struct platform_device *sdp4430_devices[] __initdata = { | 380 | static struct platform_device *sdp4430_devices[] __initdata = { |
376 | &sdp4430_gpio_keys_device, | 381 | &sdp4430_gpio_keys_device, |
377 | &sdp4430_leds_gpio, | 382 | &sdp4430_leds_gpio, |
378 | &sdp4430_leds_pwm, | 383 | &sdp4430_leds_pwm, |
379 | &sdp4430_vbat, | 384 | &sdp4430_vbat, |
385 | &sdp4430_dmic_codec, | ||
380 | }; | 386 | }; |
381 | 387 | ||
382 | static struct omap_musb_board_data musb_board_data = { | 388 | static struct omap_musb_board_data musb_board_data = { |
@@ -404,6 +410,7 @@ static struct omap2_hsmmc_info mmc[] = { | |||
404 | { | 410 | { |
405 | .mmc = 5, | 411 | .mmc = 5, |
406 | .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_POWER_OFF_CARD, | 412 | .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_POWER_OFF_CARD, |
413 | .pm_caps = MMC_PM_KEEP_POWER, | ||
407 | .gpio_cd = -EINVAL, | 414 | .gpio_cd = -EINVAL, |
408 | .gpio_wp = -EINVAL, | 415 | .gpio_wp = -EINVAL, |
409 | .ocr_mask = MMC_VDD_165_195, | 416 | .ocr_mask = MMC_VDD_165_195, |
@@ -837,74 +844,8 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
837 | { .reg_offset = OMAP_MUX_TERMINATOR }, | 844 | { .reg_offset = OMAP_MUX_TERMINATOR }, |
838 | }; | 845 | }; |
839 | 846 | ||
840 | static struct omap_device_pad serial2_pads[] __initdata = { | ||
841 | OMAP_MUX_STATIC("uart2_cts.uart2_cts", | ||
842 | OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), | ||
843 | OMAP_MUX_STATIC("uart2_rts.uart2_rts", | ||
844 | OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), | ||
845 | OMAP_MUX_STATIC("uart2_rx.uart2_rx", | ||
846 | OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), | ||
847 | OMAP_MUX_STATIC("uart2_tx.uart2_tx", | ||
848 | OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), | ||
849 | }; | ||
850 | |||
851 | static struct omap_device_pad serial3_pads[] __initdata = { | ||
852 | OMAP_MUX_STATIC("uart3_cts_rctx.uart3_cts_rctx", | ||
853 | OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), | ||
854 | OMAP_MUX_STATIC("uart3_rts_sd.uart3_rts_sd", | ||
855 | OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), | ||
856 | OMAP_MUX_STATIC("uart3_rx_irrx.uart3_rx_irrx", | ||
857 | OMAP_PIN_INPUT | OMAP_MUX_MODE0), | ||
858 | OMAP_MUX_STATIC("uart3_tx_irtx.uart3_tx_irtx", | ||
859 | OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), | ||
860 | }; | ||
861 | |||
862 | static struct omap_device_pad serial4_pads[] __initdata = { | ||
863 | OMAP_MUX_STATIC("uart4_rx.uart4_rx", | ||
864 | OMAP_PIN_INPUT | OMAP_MUX_MODE0), | ||
865 | OMAP_MUX_STATIC("uart4_tx.uart4_tx", | ||
866 | OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), | ||
867 | }; | ||
868 | |||
869 | static struct omap_board_data serial2_data __initdata = { | ||
870 | .id = 1, | ||
871 | .pads = serial2_pads, | ||
872 | .pads_cnt = ARRAY_SIZE(serial2_pads), | ||
873 | }; | ||
874 | |||
875 | static struct omap_board_data serial3_data __initdata = { | ||
876 | .id = 2, | ||
877 | .pads = serial3_pads, | ||
878 | .pads_cnt = ARRAY_SIZE(serial3_pads), | ||
879 | }; | ||
880 | |||
881 | static struct omap_board_data serial4_data __initdata = { | ||
882 | .id = 3, | ||
883 | .pads = serial4_pads, | ||
884 | .pads_cnt = ARRAY_SIZE(serial4_pads), | ||
885 | }; | ||
886 | |||
887 | static inline void board_serial_init(void) | ||
888 | { | ||
889 | struct omap_board_data bdata; | ||
890 | bdata.flags = 0; | ||
891 | bdata.pads = NULL; | ||
892 | bdata.pads_cnt = 0; | ||
893 | bdata.id = 0; | ||
894 | /* pass dummy data for UART1 */ | ||
895 | omap_serial_init_port(&bdata); | ||
896 | |||
897 | omap_serial_init_port(&serial2_data); | ||
898 | omap_serial_init_port(&serial3_data); | ||
899 | omap_serial_init_port(&serial4_data); | ||
900 | } | ||
901 | #else | 847 | #else |
902 | #define board_mux NULL | 848 | #define board_mux NULL |
903 | |||
904 | static inline void board_serial_init(void) | ||
905 | { | ||
906 | omap_serial_init(); | ||
907 | } | ||
908 | #endif | 849 | #endif |
909 | 850 | ||
910 | static void omap4_sdp4430_wifi_mux_init(void) | 851 | static void omap4_sdp4430_wifi_mux_init(void) |
@@ -954,7 +895,7 @@ static void __init omap_4430sdp_init(void) | |||
954 | omap4_i2c_init(); | 895 | omap4_i2c_init(); |
955 | omap_sfh7741prox_init(); | 896 | omap_sfh7741prox_init(); |
956 | platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices)); | 897 | platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices)); |
957 | board_serial_init(); | 898 | omap_serial_init(); |
958 | omap_sdrc_init(NULL, NULL); | 899 | omap_sdrc_init(NULL, NULL); |
959 | omap4_sdp4430_wifi_init(); | 900 | omap4_sdp4430_wifi_init(); |
960 | omap4_twl6030_hsmmc_init(mmc); | 901 | omap4_twl6030_hsmmc_init(mmc); |