Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp175178imm; Thu, 20 Sep 2018 21:10:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYc49yx4mp/o4E110gaDuB+LjQTKcsUhkiCiNHj9MuNMz1eXEc/7nfps5ErIXdCMhpPBFGP X-Received: by 2002:a63:4950:: with SMTP id y16-v6mr3506061pgk.32.1537503027509; Thu, 20 Sep 2018 21:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537503027; cv=none; d=google.com; s=arc-20160816; b=Sfblop4ccXDEJl7pT82vn6hGwMLNjOnLf6UiaCu1GUpKo3+sZi1wQoAj1JRQjW2l3V ASi8ciLEz1PTqU0U1XbImXKtY5Cm3dj3xNYb9+f5mON7i8Q856i3h8Fnw1jS6dHHXlGL +b3KtCHmakOhkXlnx4yPUhi3h5HaUiOW2wpZE4c3yz9nY8conbcHEtsQ8rfdjXAc+W26 ARou9wwQM3BZKhL6T/th5yOJNwoTOk7jOtMdWWuWab3aMvSlW0XlFMq9f7/gMW+9wxgf UXQz+t9b2EmoUIuFHVNnReYGAerGFe1pslNvO8xJ6NMyLEUOQRv5NWlMErCHv1XToOof gZbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=y30VvSpXeKgGtfoVosJjx4l/rh2xTa52B/hbghw1Phg=; b=n5rMWfHTXTCdiG2S/iB8vlkTkzKv+26T9OlCvT3IlHSBhnJJcC48XRwUs5McsA2ISW +0EDqpY3oBthLnzFgAuvjqzrt+QzzHDMtXIdQyPbP8+3OYdJZXGJrwx89K6qEpOf6j37 VrcjsDGnm7x1i4ACHlqTWC8KumAwqg5b+76GOUtFPzU5gowhF0hCfVTV7X95AJlayGKZ 7mHoH6vDY2IorEV4L8GyhfLBfQzLZYV0e/rnCOEsJj+qXzG3+IH06Ev0SAJNC7GKXoTZ ehJUHe2ESttjelI2EjWcrf0O6UZxvDme/btn3YEKu0nMZ/xmLpmfoUC8O/r36WntvVIK keUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 65-v6si27558777pfe.49.2018.09.20.21.10.12; Thu, 20 Sep 2018 21:10:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389156AbeIUJyk (ORCPT + 99 others); Fri, 21 Sep 2018 05:54:40 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:48966 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2389061AbeIUJyj (ORCPT ); Fri, 21 Sep 2018 05:54:39 -0400 X-UUID: ed9914fecdbe40c38fe11fda44eeea3a-20180921 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 346336791; Fri, 21 Sep 2018 12:07:41 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 21 Sep 2018 12:07:40 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 21 Sep 2018 12:07:40 +0800 From: To: , CC: , , , Mars Cheng , Sean Wang Subject: [PATCH 4/4] pinctrl: mediatek: add eint support to MT6765 pinctrl driver Date: Fri, 21 Sep 2018 12:07:38 +0800 Message-ID: <82d47055aec8e40422eb72568e96bfbaf199d9d2.1537502494.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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