diff options
author | Michael Williamson <michael.williamson@criticallink.com> | 2011-01-18 12:21:45 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-02-28 17:53:29 -0500 |
commit | 5a0d80ea806f89c078dd4b244479080cfe73d2ae (patch) | |
tree | 92965c584ef60a8f2bba606ed8c854f6da08f340 | |
parent | c840fc745f6ec8a3b7062d72de193ab9c397d725 (diff) |
davinci: da850: move da850_evm specific mmcsd pinmux array to board file.
The da850_mmcsd0_pins pinmux array contains pins that are specific to the
da850 evm board (the write protect and card detect GPIO pins). Move
the array to the board file.
Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Tested-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/da8xx.h | 1 |
3 files changed, 8 insertions, 9 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index c4c0b7562d96..11f986bec89d 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
@@ -690,6 +690,13 @@ static struct davinci_mmc_config da850_mmc_config = { | |||
690 | .version = MMC_CTLR_VERSION_2, | 690 | .version = MMC_CTLR_VERSION_2, |
691 | }; | 691 | }; |
692 | 692 | ||
693 | static const short da850_evm_mmcsd0_pins[] __initconst = { | ||
694 | DA850_MMCSD0_DAT_0, DA850_MMCSD0_DAT_1, DA850_MMCSD0_DAT_2, | ||
695 | DA850_MMCSD0_DAT_3, DA850_MMCSD0_CLK, DA850_MMCSD0_CMD, | ||
696 | DA850_GPIO4_0, DA850_GPIO4_1, | ||
697 | -1 | ||
698 | }; | ||
699 | |||
693 | static void da850_panel_power_ctrl(int val) | 700 | static void da850_panel_power_ctrl(int val) |
694 | { | 701 | { |
695 | /* lcd backlight */ | 702 | /* lcd backlight */ |
@@ -1077,7 +1084,7 @@ static __init void da850_evm_init(void) | |||
1077 | ret); | 1084 | ret); |
1078 | 1085 | ||
1079 | if (HAS_MMC) { | 1086 | if (HAS_MMC) { |
1080 | ret = davinci_cfg_reg_list(da850_mmcsd0_pins); | 1087 | ret = davinci_cfg_reg_list(da850_evm_mmcsd0_pins); |
1081 | if (ret) | 1088 | if (ret) |
1082 | pr_warning("da850_evm_init: mmcsd0 mux setup failed:" | 1089 | pr_warning("da850_evm_init: mmcsd0 mux setup failed:" |
1083 | " %d\n", ret); | 1090 | " %d\n", ret); |
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 9cb769c2890b..9fd497afd4a5 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
@@ -606,13 +606,6 @@ const short da850_lcdcntl_pins[] __initdata = { | |||
606 | -1 | 606 | -1 |
607 | }; | 607 | }; |
608 | 608 | ||
609 | const short da850_mmcsd0_pins[] __initdata = { | ||
610 | DA850_MMCSD0_DAT_0, DA850_MMCSD0_DAT_1, DA850_MMCSD0_DAT_2, | ||
611 | DA850_MMCSD0_DAT_3, DA850_MMCSD0_CLK, DA850_MMCSD0_CMD, | ||
612 | DA850_GPIO4_0, DA850_GPIO4_1, | ||
613 | -1 | ||
614 | }; | ||
615 | |||
616 | /* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */ | 609 | /* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */ |
617 | static u8 da850_default_priorities[DA850_N_CP_INTC_IRQ] = { | 610 | static u8 da850_default_priorities[DA850_N_CP_INTC_IRQ] = { |
618 | [IRQ_DA8XX_COMMTX] = 7, | 611 | [IRQ_DA8XX_COMMTX] = 7, |
diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h index 89668b402e23..18f6c23f6b01 100644 --- a/arch/arm/mach-davinci/include/mach/da8xx.h +++ b/arch/arm/mach-davinci/include/mach/da8xx.h | |||
@@ -129,6 +129,5 @@ extern const short da850_uart2_pins[]; | |||
129 | extern const short da850_i2c0_pins[]; | 129 | extern const short da850_i2c0_pins[]; |
130 | extern const short da850_i2c1_pins[]; | 130 | extern const short da850_i2c1_pins[]; |
131 | extern const short da850_lcdcntl_pins[]; | 131 | extern const short da850_lcdcntl_pins[]; |
132 | extern const short da850_mmcsd0_pins[]; | ||
133 | 132 | ||
134 | #endif /* __ASM_ARCH_DAVINCI_DA8XX_H */ | 133 | #endif /* __ASM_ARCH_DAVINCI_DA8XX_H */ |