Received: by 10.223.185.116 with SMTP id b49csp715737wrg; Fri, 23 Feb 2018 05:46:47 -0800 (PST) X-Google-Smtp-Source: AH8x225+EQQZyIBZr5WASPL4SpFXskmmWCOcFa8nVTkM0GkS98Cf4WVh5Hj7UStCrKEpVcrN1Qp8 X-Received: by 10.98.201.194 with SMTP id l63mr1850255pfk.126.1519393607661; Fri, 23 Feb 2018 05:46:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519393607; cv=none; d=google.com; s=arc-20160816; b=zMXPnj62EwjUllQtYJf85uXwo9/nQ7+zExKKDAvllAeAuXXAqxUXGj9YWX6qwM4h0i LO5jgllSU4yfzQvRmJrpoJ20txCXE6dc4r5ANnRUVTzRMgQ+Q8y8nU444+MJWLJyLB72 7SzwaV+LvAkErdW3NJNDPY+X8QhMKXj1X5VoeysK+702ZvvxUTv5x/z1pQ0buKe23QNc 9uG5q7vy8JfKUGKABc8T+KHqbIy/Wedx+y/43YlsQfAfNe9DnAfjgeuhOFjX5o9BtnhM Gtp+BMFkT8Kn1keuZr2l/gQWh4buBqLA6qe+5KoSXQPHrGDLqpfcMKZaoM1FXe8Y5KP0 au0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=fRYyQgRAgnzptUpMu+kQO6yps1vawDd9yN1UtUoX8VI=; b=COejIEZL4pLdZrDuieUhbLiOahlHxgR8T0lzN3fHxTqLXCyMfmzD9awE0nBSfk9w1A 0EuVQCZsMcFAGv8YXY8PEOxe2czGD8+R38B2Ao5h45OJkEYC/kUDa4rYFYQ+IwkYfFw/ 3UlLX/9T0LtT82jeQjUaLAkX3pwTpwJBlzzYVoaXp8iNCIO9ICFuckflF3oS695f3bB5 mqLMJV3viuePe0lvUQG9Prg9hvp0FMUTNmCYCcN9mhXUIKuP4uxiIapclS7U5RZhsgjF FtINqbThUgrcGu4i4uVI8fnxULg5P6524O1tGZMsEsjcVeyrW6l+C69j3/gCLmiR8vbj qIcg== 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 a14-v6si1795331plt.693.2018.02.23.05.46.33; Fri, 23 Feb 2018 05:46:47 -0800 (PST) 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 S1751888AbeBWNp6 (ORCPT + 99 others); Fri, 23 Feb 2018 08:45:58 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:48898 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbeBWNie (ORCPT ); Fri, 23 Feb 2018 08:38:34 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id BAEF420876; Fri, 23 Feb 2018 14:38:31 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.lan (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 53CE72043E; Fri, 23 Feb 2018 14:38:31 +0100 (CET) From: =?UTF-8?q?Myl=C3=A8ne=20Josserand?= To: maxime.ripard@bootlin.com, linux@armlinux.org.uk, wens@csie.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clabbe.montjoie@gmail.com, thomas.petazzoni@bootlin.com, mylene.josserand@bootlin.com, quentin.schulz@bootlin.com Subject: [PATCH v4 02/10] ARM: sun9i: smp: Rename clusters's power-off register Date: Fri, 23 Feb 2018 14:37:34 +0100 Message-Id: <20180223133742.26044-3-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180223133742.26044-1-mylene.josserand@bootlin.com> References: <20180223133742.26044-1-mylene.josserand@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To prepare the support for sun8i-a83t, rename the variable name that handles the power-off of clusters because it is different from sun9i-a80 to sun8i-a83t. The power off register for clusters are different from SUN9I and SUN8I Signed-off-by: Mylène Josserand --- arch/arm/mach-sunxi/mc_smp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-sunxi/mc_smp.c b/arch/arm/mach-sunxi/mc_smp.c index 650a2ad4398f..de02e5662557 100644 --- a/arch/arm/mach-sunxi/mc_smp.c +++ b/arch/arm/mach-sunxi/mc_smp.c @@ -60,7 +60,7 @@ #define PRCM_CPU_PO_RST_CTRL_CORE(n) BIT(n) #define PRCM_CPU_PO_RST_CTRL_CORE_ALL 0xf #define PRCM_PWROFF_GATING_REG(c) (0x100 + 0x4 * (c)) -#define PRCM_PWROFF_GATING_REG_CLUSTER BIT(4) +#define PRCM_PWROFF_GATING_REG_CLUSTER_SUN9I BIT(4) #define PRCM_PWROFF_GATING_REG_CORE(n) BIT(n) #define PRCM_PWR_SWITCH_REG(c, cpu) (0x140 + 0x10 * (c) + 0x4 * (cpu)) #define PRCM_CPU_SOFT_ENTRY_REG 0x164 @@ -252,7 +252,7 @@ static int sunxi_cluster_powerup(unsigned int cluster) /* clear cluster power gate */ reg = readl(prcm_base + PRCM_PWROFF_GATING_REG(cluster)); - reg &= ~PRCM_PWROFF_GATING_REG_CLUSTER; + reg &= ~PRCM_PWROFF_GATING_REG_CLUSTER_SUN9I; writel(reg, prcm_base + PRCM_PWROFF_GATING_REG(cluster)); udelay(20); @@ -516,7 +516,7 @@ static int sunxi_cluster_powerdown(unsigned int cluster) /* gate cluster power */ pr_debug("%s: gate cluster power\n", __func__); reg = readl(prcm_base + PRCM_PWROFF_GATING_REG(cluster)); - reg |= PRCM_PWROFF_GATING_REG_CLUSTER; + reg |= PRCM_PWROFF_GATING_REG_CLUSTER_SUN9I; writel(reg, prcm_base + PRCM_PWROFF_GATING_REG(cluster)); udelay(20); -- 2.11.0