pinctrl: rockchip: Add set_config callback support for gpiolib
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 3 May 2018 08:04:42 +0000 (16:04 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 23 May 2018 09:33:49 +0000 (11:33 +0200)
commitb97038af5eef94750ba17800e1fffdb427053ab1
tree90b313eee2a1790067ac6eb9ed00aca43c580f71
parent87065ca9b8e5951920034d5c06687c049a5cf2cf
pinctrl: rockchip: Add set_config callback support for gpiolib

Could only support PIN_CONFIG_INPUT_DEBOUNCE now as the HW block
is too simple to support others. But even wrt. debounce capability,
it now could only support very limited period of time to satisfy the
real usecase. But still be useful to enable the crippled HW debounce
to prevent any spurious glitches from waking up the system if the
gpio is conguired as wakeup interrupt source.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c