
16 Mar
2016
16 Mar
'16
2:27 a.m.
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@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.