Received: by 10.192.165.148 with SMTP id m20csp405395imm; Fri, 4 May 2018 12:08:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoaCerZsG+K53ZGkh5hmL6UFaccY0cA4Nr2R8oUXscKb/tzWjF5T7uPFy9I03mnwWyOOpez X-Received: by 2002:a17:902:7841:: with SMTP id e1-v6mr29390205pln.197.1525460936020; Fri, 04 May 2018 12:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525460935; cv=none; d=google.com; s=arc-20160816; b=mdNZE7EexbkdwZERsqAAYubVsNZWXAl1n1U7yFeQwnS1KMxvTHbg4OesrO1IHLIq3E f/Rf7MRS4WRcixoVgzVJU+9tL2255vGZO+XgMT8r8bDcAt5MuqiaBp6CqjHwnBxdAR4c fhWhoSchm3nyEDU288VflUyc509pvAH5Vki1S1G6vqQUcaptia+k0i3YFS8pjCL87OQj vhvs4tzW7BpzALWX9kBFMgwK+5qO4duatoEWtUrYvqjBs3JoLQQ+yOl/uh7Pj9aN14Sr fi3PQVodyqAADCajgPS10sSDvvbhMNtK5jsHBYKNaiD613GFo5TW/Ttv+Uk60/9sMdQ+ uikA== 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=ld9xrHA3sqQvqURgt4oMhXD23JDwlYa4tzLnzy1+zho=; b=MhNupgwjkC0QqQMgOErBqjInIgzjFGgueUpJTmD1JRzfjVCCCqzGy2amLqSGn1dEy5 Ps+Slap5B6k6MJV4aCb7Z7shqHjSIW5m1IJdGqi2cikhvZzurOW7JYQndJ7mzK+T3fEM vgK7pu9rnsHWwELWXHisevIxhKgMZElmRrqGxGCM5itomT/TOFwseBHnpGrl1lqHfa5A 7cNEX2fQbqut3mQ4EE/RG84/kz4Ipvv7C4KXACP0nT/OHY+2LHSffUX4cjWFUV4gegdz VeZZxVwuEx9102vCpC4BaToXNxKegByIvTCIM06mmbizZeaIjBTQadH48Vq9Dcbuv3jr KUnA== 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 y10-v6si13715266pgs.583.2018.05.04.12.08.41; Fri, 04 May 2018 12:08: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 S1751936AbeEDTHH (ORCPT + 99 others); Fri, 4 May 2018 15:07:07 -0400 Received: from mail.bootlin.com ([62.4.15.54]:43011 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751886AbeEDTHF (ORCPT ); Fri, 4 May 2018 15:07:05 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id CCF22207B3; Fri, 4 May 2018 21:07:02 +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 D347B20650; Fri, 4 May 2018 21:07:01 +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 09/12] ARM: sun9i: smp: Add is_a83t field Date: Fri, 4 May 2018 21:05:42 +0200 Message-Id: <20180504190545.5114-10-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 of sun8i-a83t, add a field in the smp_data structure to know if we are on sun9i-a80 or sun8i-a83t. Add also a global variable to retrieve which architecture we are having. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- arch/arm/mach-sunxi/mc_smp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-sunxi/mc_smp.c b/arch/arm/mach-sunxi/mc_smp.c index 03f021d0c73e..fc10e3a3268f 100644 --- a/arch/arm/mach-sunxi/mc_smp.c +++ b/arch/arm/mach-sunxi/mc_smp.c @@ -74,6 +74,7 @@ static void __iomem *sram_b_smp_base; extern void sunxi_mc_smp_secondary_startup(void); extern void sunxi_mc_smp_resume(void); +static bool is_a83t; static bool sunxi_core_is_cortex_a15(unsigned int core, unsigned int cluster) { @@ -624,6 +625,7 @@ struct sunxi_mc_smp_nodes { struct sunxi_mc_smp_data { const char *enable_method; int (*get_smp_nodes)(struct sunxi_mc_smp_nodes *nodes); + bool is_a83t; }; static void __init sunxi_mc_smp_put_nodes(struct sunxi_mc_smp_nodes *nodes) @@ -697,6 +699,8 @@ static int __init sunxi_mc_smp_init(void) break; } + is_a83t = sunxi_mc_smp_data[i].is_a83t; + of_node_put(node); if (ret) return -ENODEV; -- 2.11.0