Received: by 10.192.165.148 with SMTP id m20csp404343imm; Fri, 4 May 2018 12:07:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrUxOWsnUN+zconMPKJHFFMe9V3PHHRBkqNVJdSmRCOacDU3rge6S8S+EUY9ZB4HbZLJlKA X-Received: by 10.98.178.208 with SMTP id z77mr28007344pfl.122.1525460875138; Fri, 04 May 2018 12:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525460875; cv=none; d=google.com; s=arc-20160816; b=GibyDkXIzwwu+Pmfds60eV6QpQ9V4iwfUyGnMrHYPYYWyXC5NJmmgXTUU2n89f2WOy wP7I1IzLX3cQAN8ecDoccq/ElpSE1HTcMgyLAFpiaVSLdfsArkYSOsg0VD2LOcXl9F2S x4X+lNvPkx3ore0GTNKl+KiPS/cLqvKdLFrw/dVxyfq2zksIXcllyy4MvSnICldVlb3i tAlsI9cB+DWfswWUgQq86jTuucP23Nh9kASiKmdnTfcJSkeYNsKWUTvZ/rhA+RQ1cz5M EOo+l8nn+k/Jx2wxquP5ehG3lkeK5EtOjhRAIku6LLZusDrNdCmCioRcNbjxXIyD+v+v 8xBg== 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=Uaz2eNXM56TecVmfSkN0lNIoJlcGFh7znXJlvpqoG4g=; b=gSTvJircIreks1TwY4CB73a6EhO7NrNswQRSwBnGdT2SyekCZPZwDtdTy8+ju0s0yH VbkoQHuY0692rsqGO6gHeRJQiPVo0Ttp5JdRjlBtX8SJYwIEPGn8a528y1j5iaKutzc3 jGyFLZdQnBdgS4jkqAXfz2n6LzgQn6lHvUaaywbPVEwXrrgU6O4FEFadUQl98na3W5Bs hI7BmlrnG8sDyD0JFFbhM4ot0DioNmtadhLdRJHeEVVSU77HtJiCmu1bmrPn60ElpTOU n0Ql1RGWOJ7CJUXrd3B0i/TIQBvFIJ9QxlY+DKMj25kGj7QXEpnlRddcstJAsS07hTmk q30Q== 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 e1-v6si16110329pld.69.2018.05.04.12.07.41; Fri, 04 May 2018 12:07:55 -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 S1751962AbeEDTHJ (ORCPT + 99 others); Fri, 4 May 2018 15:07:09 -0400 Received: from mail.bootlin.com ([62.4.15.54]:43000 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751891AbeEDTHD (ORCPT ); Fri, 4 May 2018 15:07:03 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 338592076B; Fri, 4 May 2018 21:07:01 +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 (176-137-37-244.abo.bbox.fr [176.137.37.244]) by mail.bootlin.com (Postfix) with ESMTPSA id 3B39120650; Fri, 4 May 2018 21:07:00 +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, horms@verge.net.au, geert@linux-m68k.org, magnus.damm@gmail.com Cc: f.fainelli@gmail.com, opendmb@gmail.com, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, thomas.petazzoni@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mylene.josserand@bootlin.com Subject: [PATCH v9 08/12] ARM: sun9i: smp: Rename clusters's power-off Date: Fri, 4 May 2018 21:05:41 +0200 Message-Id: <20180504190545.5114-9-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180504190545.5114-1-mylene.josserand@bootlin.com> References: <20180504190545.5114-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 macro 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 Reviewed-by: Chen-Yu Tsai --- 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