Home
last modified time | relevance | path

Searched hist:"5 dafa4543c399d329c7b01df1afa98437861cac0" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/gpio/
H A Dmxc_gpio.c5dafa4543c399d329c7b01df1afa98437861cac0 Mon Aug 20 10:55:41 UTC 2012 Benoît Thébaudeau <benoit.thebaudeau@advansee.com> mxc: Make gpio_get_value() use PSR

gpio_get_value() should use PSR like Linux, not DR, because DR does not always
reflect the pin state, while PSR does. This is especially useful to detect a
short circuit on a GPIO pin configured as output, or to read the level of a pin
controlled by a non-GPIO IOMUX function.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>