Re: [PATCH 4/4] pinctrl: mediatek: add eint support to MT6765 pinctrl driver

2018-09-21 Thread Linus Walleij
On Thu, Sep 20, 2018 at 9:07 PM  wrote:

> From: Mars Cheng 
>
> Just add eint support to MT6765 pinctrl driver as usual as
> happens on the other SoCs.
>
> Signed-off-by: Mars Cheng 
> Signed-off-by: Sean Wang 

Patch applied.

Yours,
Linus Walleij


[PATCH 4/4] pinctrl: mediatek: add eint support to MT6765 pinctrl driver

2018-09-20 Thread sean.wang
From: Mars Cheng 

Just add eint support to MT6765 pinctrl driver as usual as
happens on the other SoCs.

Signed-off-by: Mars Cheng 
Signed-off-by: Sean Wang 
---
 drivers/pinctrl/mediatek/pinctrl-mt6765.c | 8 
 1 file changed, 8 insertions(+)

diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6765.c 
b/drivers/pinctrl/mediatek/pinctrl-mt6765.c
index 1cae634..32451e8 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[] = {
"iocfg6", "iocfg7",
 };
 
+static const struct mtk_eint_hw mt6765_eint_hw = {
+   .port_mask = 7,
+   .ports = 6,
+   .ap_num= 160,
+   .db_cnt= 13,
+};
+
 static const struct mtk_pin_soc mt6765_data = {
.reg_cal = mt6765_reg_cals,
.pins = mtk_pins_mt6765,
.npins = ARRAY_SIZE(mtk_pins_mt6765),
.ngrps = ARRAY_SIZE(mtk_pins_mt6765),
+   .eint_hw = &mt6765_eint_hw,
.gpio_m = 0,
.ies_present = true,
.base_names = mt6765_pinctrl_register_base_names,
-- 
2.7.4