[U-Boot] [PATCH] gpio: mxc_gpio: Fix gpio_get_value() when the GPIO is an output
Benoît Thébaudeau
benoit.thebaudeau at advansee.com
Sun Sep 29 21:45:30 CEST 2013
Hi Otavio,
On Sunday, September 29, 2013 9:42:44 PM, Otavio Salvador wrote:
> On Sun, Sep 29, 2013 at 4:25 PM, Benoît Thébaudeau
> <benoit.thebaudeau at advansee.com> wrote:
> ...
> > Hence, gpio_get_value() should be left unchanged (using PSR in all cases),
> > and
> > SION should be set for all GPIOs in the i.MX6 pin definition header files.
>
> I just does not follow why this preferred against Fabio's proposed
> patch to read from DR?
Because in case of a level conflict between the GPIO output and some other
hardware on the board, one would expect gpio_get_value() to return the actual
pin level, and not the level that the GPIO output tries (but possibly fails) to
apply on this pin.
Best regards,
Benoît
More information about the U-Boot
mailing list