OSDN Git Service

pinctrl: st: Add software edge trigger interrupt support
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Thu, 16 Jan 2014 15:37:31 +0000 (15:37 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 10 Feb 2014 09:13:07 +0000 (10:13 +0100)
commit155795b9d143f4210c19ab50462e19fdeb38bc81
tree92b8e61d410a2763f962dc788e7bf9bd76d9ff3a
parent727b0f71a56de64c0994e24f2504b1b954fd6f93
pinctrl: st: Add software edge trigger interrupt support

ST pin controller does not have hardware support for detecting edge
triggered interrupts, It only has level triggering support.
This patch attempts to fake up edge triggers from hw level trigger
support in software. With this facility now the gpios can be easily used
for keypads, otherwise it would be difficult for drivers like keypads to
work with level trigger interrupts.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-st.c