Received: by 10.192.165.148 with SMTP id m20csp712896imm; Fri, 20 Apr 2018 14:17:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+m6sQxmy9b0BH056Pxt8aMZyRHjKtFOJPHTAyEoRXG9SioggvaqdIhwNQbb6UhoYCVVnDa X-Received: by 10.99.126.71 with SMTP id o7mr9553596pgn.366.1524259020722; Fri, 20 Apr 2018 14:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524259020; cv=none; d=google.com; s=arc-20160816; b=h8g8hWzuYQ+tWVtT6MVXzIN9IScbGv7SSZGQETOQqQE+SOERu0i6ARmmHv1A1qU7Dw 17ir/XwV/wbIBwDuAFUbUmlH1h1IVtCna1UJ6FGvRQ0jcwDQDHWJDnLv+TDxDKoLjQGT mjNZsUHtToR09gOqjEtYh6ls9b5SG0EJdWAv5i/0ptUO8o18J3RcofChn9QDQUFbvt0i GVAZp5H84T/nMXVPBYwP030tXUJogC//rVAYPUqjjY3/L/s9TW61DCj+r9VbPc6lz0EL cLnNmyEqF3OeJFFzOiNCi4YoAWRHWK7XuNZkS67e4dt+m4Lc/+8jBO3QFXpmVH0l36bW L8fQ== 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=WjqwPciThu3C/IWtBNVy6G+WczAR40mVuyVGEssIkUw=; b=Kz0AnZ6dmbQ8FVfhf1sGxcN+vgE0jByQeSteB2CNZYyPbWwHFJNfhrqZCJXcjdUGor uaAGqF20uhLtSewPTcJqhFItJmnjDYkFXTCw2T/0iZevdS3fyHsuMkETdbpGBaQJTK3/ 1utlQbVMVyKg43VY2DdI11eh0/A3/c3LIRsl5zimXY0lTF7EN/dDFHhtUWslzuZ/55Dp XC18a2GJ2ml/k3Hvty/Lmujl3pwTAbYOZpEkrkIlhmMxeicq47qCTvlNSscPXqGcfvBU tP914qz0cdRI+sDi2XmjU6kjnhI713KkyRR4c8iC7Nxaij5n5J5Dc4XxPyC+6Vz/FU0B qHag== 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 b10-v6si4631182plb.177.2018.04.20.14.16.23; Fri, 20 Apr 2018 14:17:00 -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 S1753197AbeDTVLt (ORCPT + 99 others); Fri, 20 Apr 2018 17:11:49 -0400 Received: from mail.bootlin.com ([62.4.15.54]:51448 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752686AbeDTVLq (ORCPT ); Fri, 20 Apr 2018 17:11:46 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id D9645207BF; Fri, 20 Apr 2018 23:11:44 +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 EEBF420713; Fri, 20 Apr 2018 23:11:43 +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: 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 v7 08/11] ARM: sun9i: smp: Add is_a83t field Date: Fri, 20 Apr 2018 23:10:19 +0200 Message-Id: <20180420211022.11759-9-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180420211022.11759-1-mylene.josserand@bootlin.com> References: <20180420211022.11759-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 --- 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..48e5f4db64b6 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 int 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); + int 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