aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/generic.c
diff options
context:
space:
mode:
authorPavel Pisa <ppisa@pikron.com>2007-08-20 16:39:41 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-08-23 07:35:11 -0400
commita228d6e7ed8e3624b6c1497a550d8d0e2cac889f (patch)
tree3b3e0a650c701fd17df0b89cbe3c3b95b77bca3b /arch/arm/mach-imx/generic.c
parent7b1bc03e803f772bf71245eaba461651f32481b4 (diff)
[ARM] 4552/1: i.MX/MX1 GPIO output setup fix
The pins for GPIO should be provided as plain number build as (GPIO_PORTx + pin_number). But to setup the output GPIO_GIUS and GPIO_DR have to be specified in mode to route right value to the pin. This is a fix, it should go to 2.6.23 Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-imx/generic.c')
-rw-r--r--arch/arm/mach-imx/generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/generic.c b/arch/arm/mach-imx/generic.c
index a58b678006df..c342595dc318 100644
--- a/arch/arm/mach-imx/generic.c
+++ b/arch/arm/mach-imx/generic.c
@@ -138,7 +138,7 @@ EXPORT_SYMBOL(imx_gpio_direction_input);
138int imx_gpio_direction_output(unsigned gpio, int value) 138int imx_gpio_direction_output(unsigned gpio, int value)
139{ 139{
140 imx_gpio_set_value(gpio, value); 140 imx_gpio_set_value(gpio, value);
141 imx_gpio_mode(gpio| GPIO_OUT); 141 imx_gpio_mode(gpio | GPIO_OUT | GPIO_GIUS | GPIO_DR);
142 return 0; 142 return 0;
143} 143}
144 144