GPIO: LPC32xx: Add output reading to GPO P3
authorRoland Stigge <stigge@antcom.de>
Mon, 5 Mar 2012 22:01:11 +0000 (23:01 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 12 Mar 2012 17:25:30 +0000 (11:25 -0600)
commit46158aad96b0a90b52fd345f89951a50b3d1a81f
treeb6ce41ea7ece7c0833fd42120a14e96455b1fd5f
parent8e5fb37b9873eacb2381f2931d252b6db6e2cb16
GPIO: LPC32xx: Add output reading to GPO P3

The chip offers the function to detect the current state of output of the GPO
P3 pins. Useful for reading GPIO output state in Linux' GPIO API, e.g. via
sysfs.

Please note that this only reads back the currently programmed output state,
not the actual electrical level in terms of a GPI function. Finally, GPO3 is
still just an output.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-lpc32xx.c
This page took 0.049308 seconds and 5 git commands to generate.