]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: intel: Add support for hardware debouncer
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 27 Jan 2017 10:07:14 +0000 (13:07 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 30 Jan 2017 14:01:35 +0000 (15:01 +0100)
commit73e4adc9e3890cf777bc554231df5ff12e6765dd
tree93e55ff43d92764fd78a4810d531050a5eb5259f
parentc56878ed182643c53c17dff07803791520f50ced
pinctrl: intel: Add support for hardware debouncer

The next generation Intel GPIO hardware has two additional registers
PADCFG2 and PADCFG3. The latter is marked as reserved but the former
includes configuration for per-pad hardware debouncer.

This patch adds support for that in the Intel pinctrl core driver. Since
these are additional features on top of the current generation hardware,
we use revision number and feature flags to enable this if detected.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-intel.c
drivers/pinctrl/intel/pinctrl-intel.h