summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-tc3589x.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-03-22 12:51:16 +0300
committerLinus Walleij <linus.walleij@linaro.org>2016-04-05 17:57:15 +0300
commitc663e5f56737757db4d0b317c510ab505f93cecb (patch)
treefbccce2fb9c115fc5f42869cae744dcbc816ea9c /drivers/gpio/gpio-tc3589x.c
parent6e66a6599a813abfc9ebe2e295c9d557c434812a (diff)
downloadlinux-c663e5f56737757db4d0b317c510ab505f93cecb.tar.xz
gpio: support native single-ended hardware drivers
Some GPIO controllers has a special hardware bit we can flip to support open drain / source. This means that on these hardwares we do not need to emulate OD/OS by setting the line to input instead of actively driving it high/low. Add an optional vtable callback to the driver set_single_ended() so that driver can implement this in hardware if they have it. We may need a pinctrl_gpio_set_config() call at some point to propagate this down to a backing pin control device on systems with split GPIO/pin control. Reported-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-tc3589x.c')
0 files changed, 0 insertions, 0 deletions