summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-brcmstb.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2018-08-27 23:15:51 +0300
committerLinus Walleij <linus.walleij@linaro.org>2018-08-30 10:14:54 +0300
commit36f3f19a82152d558ee6846898b9480409b57e9d (patch)
tree6121f69a5add487a4356705cd66ad2442f9a0ac8 /drivers/gpio/gpio-brcmstb.c
parentda02d79452ea34e7ab22bd97d2fc7383bc00e16b (diff)
downloadlinux-36f3f19a82152d558ee6846898b9480409b57e9d.tar.xz
gpio: ftgpio: Support debounce timer
The FTGPIO010 has a debounce timer or rather prescaler that will affect interrupts fireing off the block. We can support this to get proper debounce on e.g. keypresses. Since the same prescaler is used across all GPIO lines of the silicon block, we need to bail out if the prescaler is already set and in use by another line. If the prescaler is already set to what we need, fine, we reuse it. This happens more often than not when the same debounce time is set for several GPIO keys, so we support that usecase easily with this code. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-brcmstb.c')
0 files changed, 0 insertions, 0 deletions