9
0
Fork 0

IMX regression: fix GPIO_DR usage

GPIO_DR ist defined already as GPIO_GPIO in imx-regs.h. There's no need to
define archdependent GPIO_DR. This one fixes a regression brought in by
d5ec92129e

Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Luotao Fu 2009-07-02 13:00:55 +02:00 committed by Sascha Hauer
parent f1ed0ae1c6
commit 50cbe3e0fc
2 changed files with 2 additions and 4 deletions

View File

@ -96,7 +96,7 @@ void imx_gpio_set_value(unsigned gpio, int value)
int imx_gpio_direction_input(unsigned gpio)
{
imx_gpio_mode(gpio | GPIO_IN | GPIO_GIUS | GPIO_DR);
imx_gpio_mode(gpio | GPIO_IN | GPIO_GIUS | GPIO_GPIO);
return 0;
}
@ -104,7 +104,7 @@ int imx_gpio_direction_input(unsigned gpio)
int imx_gpio_direction_output(unsigned gpio, int value)
{
imx_gpio_set_value(gpio, value);
imx_gpio_mode(gpio | GPIO_OUT | GPIO_GIUS | GPIO_DR);
imx_gpio_mode(gpio | GPIO_OUT | GPIO_GIUS | GPIO_GPIO);
return 0;
}

View File

@ -299,6 +299,4 @@
#define IMX_CS4_BASE 0xD4000000
#define IMX_CS5_BASE 0xD6000000
#define GPIO_DR 0x1C
#endif /* _IMX27_REGS_H */