pinctrl: mediatek: emulate GPIO interrupt on both-edges
authorYingjoe Chen <yingjoe.chen@mediatek.com>
Tue, 27 Jan 2015 06:15:26 +0000 (14:15 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Mar 2015 01:02:16 +0000 (02:02 +0100)
commit3221f40b7631183b0c7a2e5d4be00cab12d983c3
tree71f6b06e47ddaa23c42105b696dec52f5ccc0747
parent30f010f5c4cfcdf3773d6f2dcbab3c349d05c668
pinctrl: mediatek: emulate GPIO interrupt on both-edges

MTK EINT does not support generating interrupt on both edges.
Emulate this by changing edge polarity while enable irq,
set types and interrupt handling. This follows an example of
drivers/gpio/gpio-mxc.c.

Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Acked-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt8135.c
drivers/pinctrl/mediatek/pinctrl-mt8173.c
drivers/pinctrl/mediatek/pinctrl-mtk-common.c
drivers/pinctrl/mediatek/pinctrl-mtk-common.h