aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@epfl.ch>2010-05-05 05:34:21 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-05-06 02:38:34 -0400
commit7176441b95b4a04ad7cbac71d0d3614a7634d727 (patch)
tree5ee67bd8c0374893e6fcd196c1b49fa4dddf8937
parent28a2afe0df1078d479923142a708adfe65fbf8b7 (diff)
mx31smartbot: change the config of a gpio
Since it is finally used on the handbot as a configuration input for the translator. Signed-off-by: Valentin Longchamp <valentin.longchamp@epfl.ch> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-mx3/mx31moboard-smartbot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-mx3/mx31moboard-smartbot.c b/arch/arm/mach-mx3/mx31moboard-smartbot.c
index 52a69fc8b14f..83d2b9f42cec 100644
--- a/arch/arm/mach-mx3/mx31moboard-smartbot.c
+++ b/arch/arm/mach-mx3/mx31moboard-smartbot.c
@@ -119,7 +119,7 @@ static int __init smartbot_cam_init(void)
119#define POWER_EN IOMUX_TO_GPIO(MX31_PIN_DTR_DCE1) 119#define POWER_EN IOMUX_TO_GPIO(MX31_PIN_DTR_DCE1)
120#define DSPIC_RST_B IOMUX_TO_GPIO(MX31_PIN_DSR_DCE1) 120#define DSPIC_RST_B IOMUX_TO_GPIO(MX31_PIN_DSR_DCE1)
121#define TRSLAT_RST_B IOMUX_TO_GPIO(MX31_PIN_RI_DCE1) 121#define TRSLAT_RST_B IOMUX_TO_GPIO(MX31_PIN_RI_DCE1)
122#define SEL3 IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1) 122#define TRSLAT_SRC_CHOICE IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1)
123 123
124static void smartbot_resets_init(void) 124static void smartbot_resets_init(void)
125{ 125{
@@ -138,9 +138,9 @@ static void smartbot_resets_init(void)
138 gpio_export(TRSLAT_RST_B, false); 138 gpio_export(TRSLAT_RST_B, false);
139 } 139 }
140 140
141 if (!gpio_request(SEL3, "sel3")) { 141 if (!gpio_request(TRSLAT_SRC_CHOICE, "translator-src-choice")) {
142 gpio_direction_input(SEL3); 142 gpio_direction_output(TRSLAT_SRC_CHOICE, 0);
143 gpio_export(SEL3, true); 143 gpio_export(TRSLAT_SRC_CHOICE, false);
144 } 144 }
145} 145}
146/* 146/*