summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci_indirect.c
diff options
context:
space:
mode:
authormario.six@gdsys.cc <mario.six@gdsys.cc>2016-05-25 15:15:21 +0200
committerYork Sun <york.sun@nxp.com>2016-06-03 22:13:52 -0700
commit53ecdfb92034ce836ec94ba33ba0d8d27ea3c16c (patch)
tree22547ebd91bd1284d0a966d62743d08f307e87d8 /drivers/pci/pci_indirect.c
parent07d31f8f98fb350776c78a681ef27fd8ee288acd (diff)
downloadtalos-obmc-uboot-53ecdfb92034ce836ec94ba33ba0d8d27ea3c16c.tar.gz
talos-obmc-uboot-53ecdfb92034ce836ec94ba33ba0d8d27ea3c16c.zip
dm: gpio: Add methods for open drain setting
Certain GPIO devices have the capability to switch their GPIOs into open-drain mode, that is, instead of actively driving the output (Push-pull output), the pin is connected to the collector (for a NPN transistor) or the drain (for a MOSFET) of a transistor, respectively. The pin then either forms an open circuit or a connection to ground, depending on the state of the transistor. This patch adds functions to the GPIO uclass to switch GPIOs to open-drain mode on devices that support it. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers/pci/pci_indirect.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud