From patchwork Wed May 27 09:43:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongzhou Yang X-Patchwork-Id: 6488511 Return-Path: X-Original-To: patchwork-linux-mediatek@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C12AC9F1C1 for ; Wed, 27 May 2015 09:45:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D7CAB2064B for ; Wed, 27 May 2015 09:45:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0587220628 for ; Wed, 27 May 2015 09:45:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxXtb-0005Dm-7r; Wed, 27 May 2015 09:45:07 +0000 Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxXt4-0004Gu-H1; Wed, 27 May 2015 09:44:35 +0000 X-Listener-Flag: 11101 Received: from mtkhts07.mediatek.inc [(172.21.101.69)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 547021308; Wed, 27 May 2015 17:44:08 +0800 Received: from mussux00.eus.mediatek.inc (172.29.97.100) by mtkhts07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.181.6; Wed, 27 May 2015 17:44:06 +0800 From: Hongzhou Yang To: Linus Walleij , Matthias Brugger Subject: [PATCH 1/2] pinctrl: mediatek: Fix bug of ies/smt setting for mt8173. Date: Wed, 27 May 2015 02:43:54 -0700 Message-ID: <1432719835-18939-2-git-send-email-hongzhou.yang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1432719835-18939-1-git-send-email-hongzhou.yang@mediatek.com> References: <1432719835-18939-1-git-send-email-hongzhou.yang@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150527_024434_796209_D36EC4C1 X-CRM114-Status: UNSURE ( 5.79 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.3 (+) Cc: Maoguang Meng , Axel Lin , srv_heupstream@mediatek.com, Hongzhou Yang , dandan.he@mediatek.com, linux-kernel@vger.kernel.org, Fabian Frederick , linux-gpio@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Sascha Hauer , Yingjoe Chen , eddie.huang@mediatek.com, Chaotian Jing X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add ies/smt support for MSDC3. Also fix ies bug for pin 106 and 107. Signed-off-by: Hongzhou Yang --- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8173.c b/drivers/pinctrl/mediatek/pinctrl-mt8173.c index cf4ed6e..d0c811d 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt8173.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt8173.c @@ -84,6 +84,10 @@ static const struct mtk_pin_ies_smt_set mt8173_smt_set[] = { MTK_PIN_IES_SMT_SPEC(16, 16, 0x930, 0), MTK_PIN_IES_SMT_SPEC(17, 17, 0x950, 2), MTK_PIN_IES_SMT_SPEC(18, 21, 0x940, 3), + MTK_PIN_IES_SMT_SPEC(22, 25, 0xce0, 13), + MTK_PIN_IES_SMT_SPEC(26, 26, 0xcc0, 13), + MTK_PIN_IES_SMT_SPEC(27, 27, 0xcd0, 13), + MTK_PIN_IES_SMT_SPEC(28, 28, 0xd70, 13), MTK_PIN_IES_SMT_SPEC(29, 32, 0x930, 3), MTK_PIN_IES_SMT_SPEC(33, 33, 0x930, 4), MTK_PIN_IES_SMT_SPEC(34, 36, 0x930, 5), @@ -133,6 +137,10 @@ static const struct mtk_pin_ies_smt_set mt8173_ies_set[] = { MTK_PIN_IES_SMT_SPEC(16, 16, 0x900, 0), MTK_PIN_IES_SMT_SPEC(17, 17, 0x920, 2), MTK_PIN_IES_SMT_SPEC(18, 21, 0x910, 3), + MTK_PIN_IES_SMT_SPEC(22, 25, 0xce0, 14), + MTK_PIN_IES_SMT_SPEC(26, 26, 0xcc0, 14), + MTK_PIN_IES_SMT_SPEC(27, 27, 0xcd0, 14), + MTK_PIN_IES_SMT_SPEC(28, 28, 0xd70, 14), MTK_PIN_IES_SMT_SPEC(29, 32, 0x900, 3), MTK_PIN_IES_SMT_SPEC(33, 33, 0x900, 4), MTK_PIN_IES_SMT_SPEC(34, 36, 0x900, 5), @@ -161,7 +169,7 @@ static const struct mtk_pin_ies_smt_set mt8173_ies_set[] = { MTK_PIN_IES_SMT_SPEC(100, 103, 0xca0, 14), MTK_PIN_IES_SMT_SPEC(104, 104, 0xc80, 14), MTK_PIN_IES_SMT_SPEC(105, 105, 0xc90, 14), - MTK_PIN_IES_SMT_SPEC(106, 107, 0x91, 4), + MTK_PIN_IES_SMT_SPEC(106, 107, 0x910, 4), MTK_PIN_IES_SMT_SPEC(108, 112, 0x910, 1), MTK_PIN_IES_SMT_SPEC(113, 116, 0x910, 2), MTK_PIN_IES_SMT_SPEC(117, 118, 0x910, 5),