[PATCH] gpio: mxc_gpio: fix reading state of GPIO pins in output mode

Fabio Estevam festevam at gmail.com
Tue Aug 27 19:56:11 CEST 2024


Hi Tomas,

On Tue, Aug 27, 2024 at 2:52 PM Tomas Paukrt <tomaspaukrt at email.cz> wrote:
>
> The PSR register works correctly for GPIO pins in input mode,
> but always returns 0 for GPIO pins in output mode.
> The DR register works correctly in both modes.

The current code is correct as is.

You should set the SION bit to read the value of the output pin.


More information about the U-Boot mailing list