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)
commite57725eabf87c9c75bc73bd19ea00e887155e43f
tree93e55ff43d92764fd78a4810d531050a5eb5259f
parent74694269116bf04a97d89dfce7489fde7eb41ab1
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