diff options
author | Yingjoe Chen <yingjoe.chen@mediatek.com> | 2015-01-27 07:15:26 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-03-18 02:02:16 +0100 |
commit | 3221f40b7631183b0c7a2e5d4be00cab12d983c3 (patch) | |
tree | 71f6b06e47ddaa23c42105b696dec52f5ccc0747 /drivers/pinctrl/mediatek/pinctrl-mt8173.c | |
parent | arm64: mediatek: Add Pinctrl/GPIO/EINT driver for mt8173. (diff) | |
download | linux-3221f40b7631183b0c7a2e5d4be00cab12d983c3.tar.xz linux-3221f40b7631183b0c7a2e5d4be00cab12d983c3.zip |
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-mt8173.c')
-rw-r--r-- | drivers/pinctrl/mediatek/pinctrl-mt8173.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8173.c b/drivers/pinctrl/mediatek/pinctrl-mt8173.c index 66b01bb11778..f07cafbcb170 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt8173.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt8173.c @@ -405,6 +405,9 @@ static const struct mtk_pinctrl_devdata mt8173_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, |