]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit055e4c020e93f4bc5ecd7595ca39c53eee4cdb00
treeffa91f3262c9d952ae27cbee3fc6f02ccab362b5
parent9b7c3656ff229ded0573e58120fbb4ae4c382ea2
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