Re: [U-Boot] [PATCH] mx6: gpio: read data register if direction is out

2014-06-24 Thread Klaus Goger
On Jun 24, 2014, at 3:13 PM, Fabio Estevam wrote: > On Tue, Jun 24, 2014 at 10:07 AM, Stefano Babic wrote: > >> What you are describing looks an issue in your pinmux configuration >> because you do not set the SION bit, as requested to read back the value >> of the GPIO from the Pad Register. >

Re: [U-Boot] [PATCH] mx6: gpio: read data register if direction is out

2014-06-24 Thread Fabio Estevam
On Tue, Jun 24, 2014 at 10:07 AM, Stefano Babic wrote: > What you are describing looks an issue in your pinmux configuration > because you do not set the SION bit, as requested to read back the value > of the GPIO from the Pad Register. Yes, correct. Klaus, please check this commit: commit 777

Re: [U-Boot] [PATCH] mx6: gpio: read data register if direction is out

2014-06-24 Thread Stefano Babic
Hi Klaus, On 23/06/2014 08:35, Klaus Goger wrote: > On i.MX6 GPIOx_PSR does not reflect the current output value if the > direction is set to output. Instead we should read GPIOx_DR. > This conflicts with commit : commit 5dafa4543c399d329c7b01df1afa98437861cac0 Author: Benoît Thébaudeau Date:

[U-Boot] [PATCH] mx6: gpio: read data register if direction is out

2014-06-23 Thread Klaus Goger
On i.MX6 GPIOx_PSR does not reflect the current output value if the direction is set to output. Instead we should read GPIOx_DR. Signed-off-by: Klaus Goger --- drivers/gpio/mxc_gpio.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/mxc_gpio.c b/drivers/