On 12/05/2012 11:48 PM, Grant Likely wrote:
-base = REG_GPIODATAIN1 + d_bnk;
+direction = gpio_twl4030_read(REG_GPIODATADIR1 + d_bnk);
+if (direction 0 (direction d_off) 0x1)
+base = REG_SETGPIODATAOUT1 + d_bnk;
+else
+base = REG_GPIODATAIN1 +
When the GPIO is configured as output we need to read the GPIODATAOUT*
register to get correct information. When the GPIO is output the GPIODATAIN*
registers report 0 all the time (no feedback from output path).
Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com
---
drivers/gpio/gpio-twl4030.c
On Wed, 5 Dec 2012 10:49:45 +0100, Peter Ujfalusi peter.ujfal...@ti.com wrote:
When the GPIO is configured as output we need to read the GPIODATAOUT*
register to get correct information. When the GPIO is output the GPIODATAIN*
registers report 0 all the time (no feedback from output path).