[U-Boot] [PATCH 1/2] dm: gpio: mxc: fix mxc_gpio_bank_get_value

Peng Fan van.freenix at gmail.com
Wed Mar 16 02:27:01 CET 2016


Hi Fabio,

On Tue, Mar 15, 2016 at 09:53:15AM -0300, Fabio Estevam wrote:
>On Tue, Mar 15, 2016 at 2:48 AM, Peng Fan <van.freenix at gmail.com> wrote:
>> When configured a gpio to output direction, directly reading PSR register
>> can not return the output value, since we did not set SION bit for gpio
>> iomux. So, we can use data register to reflect what value is outputed.
>
>Then why not simply set the SION bit instead?

If set the SION bit, we need to change the pinmux settings in device tree,
however device tree are introduced from linux kernel. I would not like
to change the pinmux setting value.

So I choose to use data register but not PSR register.

Regards,
Peng.


More information about the U-Boot mailing list