summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/mediatek/pinctrl-mt8135.c
diff options
context:
space:
mode:
authorYingjoe Chen <yingjoe.chen@mediatek.com>2015-01-27 09:15:26 +0300
committerLinus Walleij <linus.walleij@linaro.org>2015-03-18 04:02:16 +0300
commit3221f40b7631183b0c7a2e5d4be00cab12d983c3 (patch)
tree71f6b06e47ddaa23c42105b696dec52f5ccc0747 /drivers/pinctrl/mediatek/pinctrl-mt8135.c
parent30f010f5c4cfcdf3773d6f2dcbab3c349d05c668 (diff)
downloadlinux-3221f40b7631183b0c7a2e5d4be00cab12d983c3.tar.xz
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>
Diffstat (limited to 'drivers/pinctrl/mediatek/pinctrl-mt8135.c')
-rw-r--r--drivers/pinctrl/mediatek/pinctrl-mt8135.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8135.c b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
index b6ee2b2ea715..1296d6d6fb13 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8135.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
@@ -325,6 +325,9 @@ static const struct mtk_pinctrl_devdata mt8135_pinctrl_data = {
.sens = 0x140,
.sens_set = 0x180,
.sens_clr = 0x1c0,
+ .soft = 0x200,
+ .soft_set = 0x240,
+ .soft_clr = 0x280,
.pol = 0x300,
.pol_set = 0x340,
.pol_clr = 0x380,