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 <[email protected]> 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. _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

