pinctrl: rockchip: emulate both edge triggered interrupts
authorHeiko Stübner <heiko@sntech.de>
Tue, 15 Oct 2013 23:09:08 +0000 (01:09 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 16 Oct 2013 13:33:55 +0000 (15:33 +0200)
commit5a92750133ffd998e92e4f7ed874fae61d67aeed
treeffa91f3262c9d952ae27cbee3fc6f02ccab362b5
parent6ca5274d1d1258b0e84bc1a0d67ca160d8658e5a
pinctrl: rockchip: emulate both edge triggered interrupts

The gpio interrupt controller on Rockchip socs can do edge triggers only
for single edges but not both. Nevertheless a lot of gpio users rely on
the availability of both-edge triggered interrupts - i.e. gpio-keys.

Therefore implement a solution similar to pinctrl-coh901 re-setting the
triggering edge depending on the gpio value in the interrupt demuxer.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c