Home
last modified time | relevance | path

Searched hist:"53 ecdfb92034ce836ec94ba33ba0d8d27ea3c16c" (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/drivers/gpio/
H A Dgpio-uclass.c53ecdfb92034ce836ec94ba33ba0d8d27ea3c16c Wed May 25 13:15:21 UTC 2016 mario.six@gdsys.cc <mario.six@gdsys.cc> 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>
/rk3399_rockchip-uboot/include/asm-generic/
H A Dgpio.h53ecdfb92034ce836ec94ba33ba0d8d27ea3c16c Wed May 25 13:15:21 UTC 2016 mario.six@gdsys.cc <mario.six@gdsys.cc> 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>