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:
parent
f1ed0ae1c6
commit
50cbe3e0fc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -299,6 +299,4 @@
|
|||
#define IMX_CS4_BASE 0xD4000000
|
||||
#define IMX_CS5_BASE 0xD6000000
|
||||
|
||||
#define GPIO_DR 0x1C
|
||||
|
||||
#endif /* _IMX27_REGS_H */
|
||||
|
|
Loading…
Reference in New Issue