summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/mediatek/pinctrl-mt8135.c
diff options
context:
space:
mode:
authorMaoguang Meng <maoguang.meng@mediatek.com>2015-01-21 08:28:16 +0300
committerLinus Walleij <linus.walleij@linaro.org>2015-03-18 04:02:15 +0300
commitd9819eb9cd3252fe45d52500f0f12980ee040177 (patch)
treef0f75f8fc38700bea1868d0458453c793bdd0dad /drivers/pinctrl/mediatek/pinctrl-mt8135.c
parenta6df410d420aa4ff316797d352f69e7ebae5ff98 (diff)
downloadlinux-d9819eb9cd3252fe45d52500f0f12980ee040177.tar.xz
pinctrl: mediatek: Add EINT support to MTK pinctrl driver.
MTK SoC support external interrupt(EINT) from most SoC pins. Add EINT support to pinctrl driver. Signed-off-by: Maoguang Meng <maoguang.meng@mediatek.com> Signed-off-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.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8135.c b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
index 13694b8924c4..b6ee2b2ea715 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8135.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
@@ -314,6 +314,29 @@ static const struct mtk_pinctrl_devdata mt8135_pinctrl_data = {
.port_shf = 4,
.port_mask = 0xf,
.port_align = 4,
+ .chip_type = MTK_CHIP_TYPE_BASE,
+ .eint_offsets = {
+ .name = "mt8135_eint",
+ .stat = 0x000,
+ .ack = 0x040,
+ .mask = 0x080,
+ .mask_set = 0x0c0,
+ .mask_clr = 0x100,
+ .sens = 0x140,
+ .sens_set = 0x180,
+ .sens_clr = 0x1c0,
+ .pol = 0x300,
+ .pol_set = 0x340,
+ .pol_clr = 0x380,
+ .dom_en = 0x400,
+ .dbnc_ctrl = 0x500,
+ .dbnc_set = 0x600,
+ .dbnc_clr = 0x700,
+ .port_mask = 7,
+ .ports = 6,
+ },
+ .ap_num = 192,
+ .db_cnt = 16,
};
static int mt8135_pinctrl_probe(struct platform_device *pdev)