[U-Boot] [PATCH] gpio: mxc_gpio: Fix gpio_get_value() when the GPIO is an output
Fabio Estevam
festevam at gmail.com
Sun Sep 29 20:58:09 CEST 2013
Hi Benoît,
On Sun, Sep 29, 2013 at 3:50 PM, Benoît Thébaudeau
<benoit.thebaudeau at advansee.com> wrote:
> Can you test again without any GPIO patch, but with SION set for this pin in the
> IOMUXC? According to the reference manual, SION not being set in the IOMUXC is
> the only reason that would prevent PSR from reading the pin level in GPIO output
> mode.
Yes, from the feedback from a colleague the SION bit plays a role here:
"The RM does not describe this clear. The fact should be:
PSR for input, DR for output.
PSR can be for output only when SION bit is set (now PSR = DR). "
Regards,
Fabio Estevam
More information about the U-Boot
mailing list