Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp521049yba; Thu, 16 May 2019 04:56:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHXeXkn9sjSrkA1p/4zvHj4NUovB+TBrjho8wdLf6Oho4Gj/+J3vEWgsrtoFVj8Z68Spht X-Received: by 2002:a63:d343:: with SMTP id u3mr50223868pgi.285.1558007783101; Thu, 16 May 2019 04:56:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558007783; cv=none; d=google.com; s=arc-20160816; b=XephrnIBz6lRIq8tHqn1anzX8gjCdFEbIcZ1qyYO7xB8ZbgFgODYX/RjX68L8zPav8 AFbThcuUJ0IrprRsrmlzCWjeBZrvdQSzc9f+BLG52oMG01K3p4EPpEKsHKLkYTkIKVHI p7rNRvVIeNHiglyCH9aBINzA678qmd1S5YiPlZU8S2QBypy/ZKv50CMEqw2ESnTKUPkD urWaRl5t1VZAJhN46gTcypKCHLNQKXF2CJJKp8SgUNIkvUuyuQgVNmf4+Fo3GEifjclE U9jPHUASV2R/+45mfPfokjjrAJCJ0ksUIdqw5RGbN0twG5ci1X7k0+Q8jRzOXXyWWb7g fcmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=9yMa0MdESN+pqf3yySouNjMJ8Zwp0P/OmYwg+K6jF8I=; b=LrxstdIJB5dci4OiQFXSBYEOBPIj9vB7k/Ir31DOgtWosbBM0o2bhgc/jq+NLNqT/L ykEg8rMMFASvERP/1kQsNgufDI8oqu2lGiQSbCSBXwxGe4rrdliieiWwi8LV+soQZLJS 8P30lw9XxxwBr1WSjpssQMg1oKoSl/d3hRxsdy4p9/2B9uJqYH5RtAwVMduRBqa6GUSU Zac4ou9ZBEXp/VTFKSf/JVQf8tGSXg2so3iGqWADkc6NZTZHx4rUhUzfuVkZdyJbOZEk JB54C4Bn7XACZDLXJYFRQMLsOXXZva6fdBG96xhT4Lx6Q6Nvmq4fnVmOLoQgcWm6A6B6 Oxhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="e6vF/0Ts"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si5521091pfb.264.2019.05.16.04.56.08; Thu, 16 May 2019 04:56:23 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b="e6vF/0Ts"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727681AbfEPLxg (ORCPT + 99 others); Thu, 16 May 2019 07:53:36 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:7054 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726723AbfEPLxf (ORCPT ); Thu, 16 May 2019 07:53:35 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 16 May 2019 04:53:30 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 16 May 2019 04:53:34 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 16 May 2019 04:53:34 -0700 Received: from HQMAIL102.nvidia.com (172.18.146.10) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 16 May 2019 11:53:34 +0000 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL102.nvidia.com (172.18.146.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 16 May 2019 11:53:33 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 16 May 2019 11:53:33 +0000 Received: from kyarlagadda-linux.nvidia.com (Not Verified[10.19.64.169]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Thu, 16 May 2019 04:53:33 -0700 From: Krishna Yarlagadda To: , , , , , , CC: , , , , , Krishna Yarlagadda Subject: [PATCH V3 2/4] pinctrl: tegra: Support 32 bit register access Date: Thu, 16 May 2019 17:23:12 +0530 Message-ID: <1558007594-14824-2-git-send-email-kyarlagadda@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1558007594-14824-1-git-send-email-kyarlagadda@nvidia.com> References: <1558007594-14824-1-git-send-email-kyarlagadda@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1558007610; bh=9yMa0MdESN+pqf3yySouNjMJ8Zwp0P/OmYwg+K6jF8I=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=e6vF/0TsFdqP/JSFvMk4xs2PpIwHmMnGfoPbJ6G9McEhduYoXuDWGTdAIl1ShVXNx 6HEMhTSuL2jBvRE3AgZS6iUJ76RkwpTHkG5bILnmCXeQpoN/BGqYsEqgtQoV256eXp xTSJOFTB8ypZmLmXure685LacEsSXKO+DHZF/ZZohrfywe7hqdaMkrbCjIbZgASiXR H8F+lniCLWD1fKV3TC2Ffs9KFaV8jSmWiZRr152uBCBGUbZBYpr5U+azFIgqiTD0+e lg1wEfQ4WFlaFfm1OGASqkfQj8+xnTz0Fru91/gdcWvAqVJn8XRrGPMMXXmYBtUZUv Zx5UDmuQMbD1g== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tegra194 chip has 32 bit pinctrl registers. Existing register defines in header are only 16 bit. Modified common pinctrl-tegra driver to support 32 bit registers of Tegra 194 and later chips. Signed-off-by: Krishna Yarlagadda --- drivers/pinctrl/tegra/pinctrl-tegra.c | 8 ++++---- drivers/pinctrl/tegra/pinctrl-tegra.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/pinctrl/tegra/pinctrl-tegra.c b/drivers/pinctrl/tegra/pinctrl-tegra.c index a5008c0..76e88c4 100644 --- a/drivers/pinctrl/tegra/pinctrl-tegra.c +++ b/drivers/pinctrl/tegra/pinctrl-tegra.c @@ -292,7 +292,7 @@ static int tegra_pinconf_reg(struct tegra_pmx *pmx, const struct tegra_pingroup *g, enum tegra_pinconf_param param, bool report_err, - s8 *bank, s16 *reg, s8 *bit, s8 *width) + s8 *bank, s32 *reg, s8 *bit, s8 *width) { switch (param) { case TEGRA_PINCONF_PARAM_PULL: @@ -451,7 +451,7 @@ static int tegra_pinconf_group_get(struct pinctrl_dev *pctldev, const struct tegra_pingroup *g; int ret; s8 bank, bit, width; - s16 reg; + s32 reg; u32 val, mask; g = &pmx->soc->groups[group]; @@ -480,7 +480,7 @@ static int tegra_pinconf_group_set(struct pinctrl_dev *pctldev, const struct tegra_pingroup *g; int ret, i; s8 bank, bit, width; - s16 reg; + s32 reg; u32 val, mask; g = &pmx->soc->groups[group]; @@ -548,7 +548,7 @@ static void tegra_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, const struct tegra_pingroup *g; int i, ret; s8 bank, bit, width; - s16 reg; + s32 reg; u32 val; g = &pmx->soc->groups[group]; diff --git a/drivers/pinctrl/tegra/pinctrl-tegra.h b/drivers/pinctrl/tegra/pinctrl-tegra.h index 44c7194..82cd947 100644 --- a/drivers/pinctrl/tegra/pinctrl-tegra.h +++ b/drivers/pinctrl/tegra/pinctrl-tegra.h @@ -143,10 +143,10 @@ struct tegra_pingroup { const unsigned *pins; u8 npins; u8 funcs[4]; - s16 mux_reg; - s16 pupd_reg; - s16 tri_reg; - s16 drv_reg; + s32 mux_reg; + s32 pupd_reg; + s32 tri_reg; + s32 drv_reg; u32 mux_bank:2; u32 pupd_bank:2; u32 tri_bank:2; -- 2.7.4