diff options
author | Mars Cheng <mars.cheng@mediatek.com> | 2018-09-21 00:07:38 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-09-21 12:13:54 -0400 |
commit | bb8d8466ca25d6851e3e9a703d4db13c84428b43 (patch) | |
tree | 14deb6b8343e68a25d6de598d66300b4a279d9c1 /drivers/pinctrl/mediatek | |
parent | 477fecee7ca9c633a4a2e8ddf4c1ae1d30fc6b26 (diff) |
pinctrl: mediatek: add eint support to MT6765 pinctrl driver
Just add eint support to MT6765 pinctrl driver as usual as
happens on the other SoCs.
Signed-off-by: Mars Cheng <mars.cheng@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mediatek')
-rw-r--r-- | drivers/pinctrl/mediatek/pinctrl-mt6765.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6765.c b/drivers/pinctrl/mediatek/pinctrl-mt6765.c index 1cae634c35b0..32451e8693be 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt6765.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt6765.c | |||
@@ -1056,11 +1056,19 @@ static const char * const mt6765_pinctrl_register_base_names[] = { | |||
1056 | "iocfg6", "iocfg7", | 1056 | "iocfg6", "iocfg7", |
1057 | }; | 1057 | }; |
1058 | 1058 | ||
1059 | static const struct mtk_eint_hw mt6765_eint_hw = { | ||
1060 | .port_mask = 7, | ||
1061 | .ports = 6, | ||
1062 | .ap_num = 160, | ||
1063 | .db_cnt = 13, | ||
1064 | }; | ||
1065 | |||
1059 | static const struct mtk_pin_soc mt6765_data = { | 1066 | static const struct mtk_pin_soc mt6765_data = { |
1060 | .reg_cal = mt6765_reg_cals, | 1067 | .reg_cal = mt6765_reg_cals, |
1061 | .pins = mtk_pins_mt6765, | 1068 | .pins = mtk_pins_mt6765, |
1062 | .npins = ARRAY_SIZE(mtk_pins_mt6765), | 1069 | .npins = ARRAY_SIZE(mtk_pins_mt6765), |
1063 | .ngrps = ARRAY_SIZE(mtk_pins_mt6765), | 1070 | .ngrps = ARRAY_SIZE(mtk_pins_mt6765), |
1071 | .eint_hw = &mt6765_eint_hw, | ||
1064 | .gpio_m = 0, | 1072 | .gpio_m = 0, |
1065 | .ies_present = true, | 1073 | .ies_present = true, |
1066 | .base_names = mt6765_pinctrl_register_base_names, | 1074 | .base_names = mt6765_pinctrl_register_base_names, |