Received: by 10.213.65.68 with SMTP id h4csp3167249imn; Mon, 2 Apr 2018 23:23:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx48M4VCtzEJnXSRtnn7ZlThhJArOuvryVvj7sPBuwUPRUwLfbe8rYEV0D3t8Trt88y++g0Xe X-Received: by 10.99.121.136 with SMTP id u130mr8230051pgc.414.1522736587492; Mon, 02 Apr 2018 23:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522736587; cv=none; d=google.com; s=arc-20160816; b=bSOZ6D5GK6bdbMpWf0FgOHmcY3gyBvTxAhqbGEi1htbmZ2jK1H7KztaTqI2o5dZARi 9+GCPP97H+VqLFxLPNgXnxH8MlgYFIhbBD1rKQmy/GhXiHvK8jfJjv0FIEbOr64Lstil k+YWVQ0i1iblxaOSWQ6FhT3puFnU1zwxMg0n2+y0hMDrUHiN3jymE8v3pDevg4zlhHCr GkySBm4a5dn3oJwfTkx0VB5s8RbcNpUyRmC3V7MBTxi5idhptQHHWt3Vdez2Jpz8QySC wLCvynX8HZfrfI0zRLL6+4C3v8LsPDoBhZXVxBKFKUPc0+38tnxhA7SLTpMkjbuSxpMZ ItSw== 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=SOk0a4WM3d7ESKmd80j45IT+HHzipfklkSS1RpAapRw=; b=Eh636KoiwXaYhSfRj+kWWpNWL/tNgnxp5f1292IK+3Zl/8oLIcA0BreznUyS5xW25+ Bxtzuv9/PnIX+0m5oCTawCcG54Oo2HtYa1hTmFFXp/UpO4hkj5619teaQugG//zoW5L4 INDfgfmjU4H68BPF3ob7GzLAaakqEyFxfcOUa9bRAbJxjpptdktHtNwWSbqnDyq63teX JEf9181lGzesgpxJ4BTOMVMFM6UE9rScGYumYBlYNKeDN/rB3oxaAFT68hXS0NwYSjaQ HCOpwNPYLhrCa3P8TfM9XlrC7spHnZOIefntukyoyhzMCgz3BneX+NfbD5wInSHBbUmP Aqhw== 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 g34-v6si2188226pld.24.2018.04.02.23.22.53; Mon, 02 Apr 2018 23:23:07 -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 S1755018AbeDCGVI (ORCPT + 99 others); Tue, 3 Apr 2018 02:21:08 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34658 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754835AbeDCGVF (ORCPT ); Tue, 3 Apr 2018 02:21:05 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id D77E92084E; Tue, 3 Apr 2018 08:21:03 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.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.home (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 8ABD620726; Tue, 3 Apr 2018 08:21:03 +0200 (CEST) From: =?UTF-8?q?Myl=C3=A8ne=20Josserand?= To: linux@armlinux.org.uk, maxime.ripard@bootlin.com, wens@csie.org, marc.zyngier@arm.com, mark.rutland@arm.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, thomas.petazzoni@bootlin.com, mylene.josserand@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 09/13] ARM: sun9i: smp: Rename clusters's power-off Date: Tue, 3 Apr 2018 08:18:32 +0200 Message-Id: <20180403061836.3926-10-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180403061836.3926-1-mylene.josserand@bootlin.com> References: <20180403061836.3926-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 a80 and a83t. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- 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 727968d6a3e5..03f021d0c73e 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 @@ -255,7 +255,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); @@ -452,7 +452,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