aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx3/mx31moboard-marxbot.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mx31moboard-marxbot.c b/arch/arm/mach-mx3/mx31moboard-marxbot.c
index 2bfaffb344f0..6b06faf0cf30 100644
--- a/arch/arm/mach-mx3/mx31moboard-marxbot.c
+++ b/arch/arm/mach-mx3/mx31moboard-marxbot.c
@@ -49,6 +49,8 @@ static unsigned int marxbot_pins[] = {
49 MX31_PIN_TXD2__GPIO1_28, 49 MX31_PIN_TXD2__GPIO1_28,
50 /* dsPIC resets */ 50 /* dsPIC resets */
51 MX31_PIN_STXD5__GPIO1_21, MX31_PIN_SRXD5__GPIO1_22, 51 MX31_PIN_STXD5__GPIO1_21, MX31_PIN_SRXD5__GPIO1_22,
52 /*battery detection */
53 MX31_PIN_LCS0__GPIO3_23,
52}; 54};
53 55
54#define SDHC2_CD IOMUX_TO_GPIO(MX31_PIN_ATA_DIOR) 56#define SDHC2_CD IOMUX_TO_GPIO(MX31_PIN_ATA_DIOR)
@@ -133,4 +135,9 @@ void __init mx31moboard_marxbot_init(void)
133 dspics_resets_init(); 135 dspics_resets_init();
134 136
135 mxc_register_device(&mxcsdhc_device1, &sdhc2_pdata); 137 mxc_register_device(&mxcsdhc_device1, &sdhc2_pdata);
138
139 /* battery present pin */
140 gpio_request(IOMUX_TO_GPIO(MX31_PIN_LCS0), "bat-present");
141 gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_LCS0));
142 gpio_export(IOMUX_TO_GPIO(MX31_PIN_LCS0), false);
136} 143}