aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-4430sdp.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-09 17:39:59 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-09 17:39:59 -0500
commitb3c37522928b5452588fc202eaa0f11f6e339256 (patch)
tree37bfe21d9977b15271903d1a4b304289a232e364 /arch/arm/mach-omap2/board-4430sdp.c
parent2ac9d7aaccbd598b5bd19ac40761b723bb675442 (diff)
parent6d0a5636fba5a3f82ec80ab124dd4748344549c3 (diff)
Merge tag 'pm' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
power management changes for omap and imx A significant part of the changes for these two platforms went into power management, so they are split out into a separate branch. * tag 'pm' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (65 commits) ARM: imx6: remove __CPUINIT annotation from v7_invalidate_l1 ARM: imx6: fix v7_invalidate_l1 by adding I-Cache invalidation ARM: imx6q: resume PL310 only when CACHE_L2X0 defined ARM: imx6q: build pm code only when CONFIG_PM selected ARM: mx5: use generic irq chip pm interface for pm functions on ARM: omap: pass minimal SoC/board data for UART from dt arm/dts: Add minimal device tree support for omap2420 and omap2430 omap-serial: Add minimal device tree support omap-serial: Use default clock speed (48Mhz) if not specified omap-serial: Get rid of all pdev->id usage ARM: OMAP2+: hwmod: Add a new flag to handle hwmods left enabled at init ARM: OMAP4: PRM: use PRCM interrupt handler ARM: OMAP3: pm: use prcm chain handler ARM: OMAP: hwmod: add support for selecting mpu_irq for each wakeup pad ARM: OMAP2+: mux: add support for PAD wakeup interrupts ARM: OMAP: PRCM: add suspend prepare / finish support ARM: OMAP: PRCM: add support for chain interrupt handler ARM: OMAP3/4: PRM: add functions to read pending IRQs, PRM barrier ARM: OMAP2+: hwmod: Add API to enable IO ring wakeup ARM: OMAP2+: mux: add wakeup-capable hwmod mux entries to dynamic list ...
Diffstat (limited to 'arch/arm/mach-omap2/board-4430sdp.c')
-rw-r--r--arch/arm/mach-omap2/board-4430sdp.c68
1 files changed, 1 insertions, 67 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index 4b4c9e25a83e..2ceb75d21eb2 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -844,74 +844,8 @@ static struct omap_board_mux board_mux[] __initdata = {
844 { .reg_offset = OMAP_MUX_TERMINATOR }, 844 { .reg_offset = OMAP_MUX_TERMINATOR },
845}; 845};
846 846
847static struct omap_device_pad serial2_pads[] __initdata = {
848 OMAP_MUX_STATIC("uart2_cts.uart2_cts",
849 OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0),
850 OMAP_MUX_STATIC("uart2_rts.uart2_rts",
851 OMAP_PIN_OUTPUT | OMAP_MUX_MODE0),
852 OMAP_MUX_STATIC("uart2_rx.uart2_rx",
853 OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0),
854 OMAP_MUX_STATIC("uart2_tx.uart2_tx",
855 OMAP_PIN_OUTPUT | OMAP_MUX_MODE0),
856};
857
858static struct omap_device_pad serial3_pads[] __initdata = {
859 OMAP_MUX_STATIC("uart3_cts_rctx.uart3_cts_rctx",
860 OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0),
861 OMAP_MUX_STATIC("uart3_rts_sd.uart3_rts_sd",
862 OMAP_PIN_OUTPUT | OMAP_MUX_MODE0),
863 OMAP_MUX_STATIC("uart3_rx_irrx.uart3_rx_irrx",
864 OMAP_PIN_INPUT | OMAP_MUX_MODE0),
865 OMAP_MUX_STATIC("uart3_tx_irtx.uart3_tx_irtx",
866 OMAP_PIN_OUTPUT | OMAP_MUX_MODE0),
867};
868
869static struct omap_device_pad serial4_pads[] __initdata = {
870 OMAP_MUX_STATIC("uart4_rx.uart4_rx",
871 OMAP_PIN_INPUT | OMAP_MUX_MODE0),
872 OMAP_MUX_STATIC("uart4_tx.uart4_tx",
873 OMAP_PIN_OUTPUT | OMAP_MUX_MODE0),
874};
875
876static struct omap_board_data serial2_data __initdata = {
877 .id = 1,
878 .pads = serial2_pads,
879 .pads_cnt = ARRAY_SIZE(serial2_pads),
880};
881
882static struct omap_board_data serial3_data __initdata = {
883 .id = 2,
884 .pads = serial3_pads,
885 .pads_cnt = ARRAY_SIZE(serial3_pads),
886};
887
888static struct omap_board_data serial4_data __initdata = {
889 .id = 3,
890 .pads = serial4_pads,
891 .pads_cnt = ARRAY_SIZE(serial4_pads),
892};
893
894static inline void board_serial_init(void)
895{
896 struct omap_board_data bdata;
897 bdata.flags = 0;
898 bdata.pads = NULL;
899 bdata.pads_cnt = 0;
900 bdata.id = 0;
901 /* pass dummy data for UART1 */
902 omap_serial_init_port(&bdata);
903
904 omap_serial_init_port(&serial2_data);
905 omap_serial_init_port(&serial3_data);
906 omap_serial_init_port(&serial4_data);
907}
908#else 847#else
909#define board_mux NULL 848#define board_mux NULL
910
911static inline void board_serial_init(void)
912{
913 omap_serial_init();
914}
915 #endif 849 #endif
916 850
917static void omap4_sdp4430_wifi_mux_init(void) 851static void omap4_sdp4430_wifi_mux_init(void)
@@ -961,7 +895,7 @@ static void __init omap_4430sdp_init(void)
961 omap4_i2c_init(); 895 omap4_i2c_init();
962 omap_sfh7741prox_init(); 896 omap_sfh7741prox_init();
963 platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices)); 897 platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices));
964 board_serial_init(); 898 omap_serial_init();
965 omap_sdrc_init(NULL, NULL); 899 omap_sdrc_init(NULL, NULL);
966 omap4_sdp4430_wifi_init(); 900 omap4_sdp4430_wifi_init();
967 omap4_twl6030_hsmmc_init(mmc); 901 omap4_twl6030_hsmmc_init(mmc);