]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set output pin initial value based on pin's pinmux pullup/pulldown setup
authorgonzo <gonzo@FreeBSD.org>
Sat, 1 Aug 2015 23:10:36 +0000 (23:10 +0000)
committergonzo <gonzo@FreeBSD.org>
Sat, 1 Aug 2015 23:10:36 +0000 (23:10 +0000)
commit88647590380fc477860d6eed02cabf08b6295aef
tree9bb8bc4ae2a5f024541b64995a1893395ee65ecb
parent5c500bdd461620dbc3e3a94f960619c74621f08d
Set output pin initial value based on pin's pinmux pullup/pulldown setup

Some of FDT blobs for AM335x-based devices use pinmux pullup/pulldown
flag to setup initial GPIO ouputp value, e.g. 4DCAPE-43 sets LCD DATAEN
signal this way. It works for Linux because Linux driver does not enforce
pin direction until after it's requested by consumer. So input with pullup
flag set acts as output with GPIO_HIGH value

Reviewed by: loos
sys/arm/ti/ti_gpio.c