[PATCH] gpio: mxc_gpio: Fix i.MX8M GPIO output status read

Fabio Estevam festevam at gmail.com
Sat Jan 15 14:43:40 CET 2022


Hi Harm and Ye Li,

On Fri, Aug 13, 2021 at 11:35 AM Harm Berntsen <harm.berntsen at nedap.com> wrote:
>
> Currently the driver gets value from PSR register, but this register is
> only for input mode. For output mode, it always returns 0, not the value
> we set for output.
>
> This patch changes to use DR register, which returns the DR value for
> output mode, and PSR value for input mode.
>
> This patch is based on code from Ye Li <ye.li at nxp.com>

Could this issue be fixed by setting the SION bit mode?


More information about the U-Boot mailing list