[PATCH 2/7] imx/gpio: make gpio_get_value actually work

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Mon Apr 19 04:54:27 EDT 2010


Hello,

On Mon, Apr 19, 2010 at 10:28:13AM +0200, Wolfram Sang wrote:
> From: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> 
> Newer i.MX-variants can route the content of the Sample Status Register to the
> Data Register, but older ones can't. So, use the Sample Register to be generic.
> As a drawback, the ability to read back the values of output GPIOs is lost.
AFAIK the last sentence (that was authored by Wolfram, though the patch
is mine) is wrong.  I checked mx27 and mx35 specs and both the overview
and the actual description suggest that reading output values works
(using PSR aka SSR) when the iomuxer is configured for GPIO.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



More information about the barebox mailing list