Received: by 10.192.165.148 with SMTP id m20csp4876680imm; Tue, 1 May 2018 05:33:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpnnxMO4gn5KZjaCZGXXJqoLKMzO4JczF1njN3vkpyPQP0/ZKv2axw66U+4IGHFoTQHdc+p X-Received: by 2002:a17:902:9004:: with SMTP id a4-v6mr14866304plp.143.1525178029915; Tue, 01 May 2018 05:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525178029; cv=none; d=google.com; s=arc-20160816; b=LHWdfLHqKqegB1sKrZ4rychITS0CANDV4JEPqTOAPtd0OvRWfXfrMmFo7C3cG5Plcz oK8/7NIJAk7Ide9PXFsfXjRya7G7w9kIjDYAnwS63yKk33/hNNOrskIWhQY4ePUZ820t feL5pB4QJHzZvc/bgPdSDzViLjVJKTQ56hecI6A3j/ZqnJUmuVQpoWqgNrNLF78RsAkI lyVVDRXmORzV364i5fCG1RkyhzFe+jV4m38+JX6xvl7jbD9IBVZMXA2OnS+eD4KtJeSk hEI2Sd41FxjHqSjZKKnzojvU4xY30u3eZVpxerDIcInrOp+flw9MlY5Of1Xf1P1VqeUO eXug== 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=9wjj/w/lmsegpf+ZgVwecnG+bQeAaaR9wq2+5nyWoEU=; b=Y3lL6qA0WR8WhNxPQOaDkSzgdzhzhUv8itgS1dhTxUkh9MlCe1vgrkJPkBxOwWEVsB Nk4RleqHhJ2fF1a9S9Bau40mLXq/ZEWO7Tz0Hwabnx23rJ0TOiJMzb+pUgZbcuX4qHoS xidXbevWeEUT2kIfVNm+5PnqnOlIbnbQOUvPEU26s2+24jWe79nh7N/LM6840LapoZG+ tpQfn/kpdBN7LyV5deU2s0cNgyIUlz4hYm1RqanlVnxRA3GDcXFpT71m2M9ryM66zVQN jfyKIAShgFyyNgjmqEQYc5PrzX7WWyAM2wryfzk7IXx5Aq1k+5giENldn1lSpgAaP4zl k+0A== 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 c18-v6si7611778plo.185.2018.05.01.05.33.35; Tue, 01 May 2018 05:33:49 -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 S1755688AbeEAMcd (ORCPT + 99 others); Tue, 1 May 2018 08:32:33 -0400 Received: from mail.bootlin.com ([62.4.15.54]:46143 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755610AbeEAMcb (ORCPT ); Tue, 1 May 2018 08:32:31 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 22E5720A49; Tue, 1 May 2018 14:32:29 +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 3E5B8208B3; Tue, 1 May 2018 14:32:28 +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 v8 09/12] ARM: sun9i: smp: Add is_a83t field Date: Tue, 1 May 2018 14:31:28 +0200 Message-Id: <20180501123131.7738-10-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180501123131.7738-1-mylene.josserand@bootlin.com> References: <20180501123131.7738-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..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