From patchwork Sun May 10 06:46:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vishnupatekar X-Patchwork-Id: 6370961 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F2D00BEEE5 for ; Sun, 10 May 2015 06:51:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 26249202C8 for ; Sun, 10 May 2015 06:51:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5C8DA2024F for ; Sun, 10 May 2015 06:51:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YrL1P-0001lC-H9; Sun, 10 May 2015 06:47:31 +0000 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YrL1L-0001hY-TR for linux-arm-kernel@lists.infradead.org; Sun, 10 May 2015 06:47:28 +0000 Received: by pabsx10 with SMTP id sx10so84243329pab.3 for ; Sat, 09 May 2015 23:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=X97yJnj5+RSr3+Yda3x01sQXVQ1j2lo9VAwjC1MYJP8=; b=L5MOR38gqm3w1z7xjXQsrlv0cdckorBvOMafKUWdWyARWVrpRvq66yfQwMa2bx8Upf +U9aYjmvAAFPMB7xIevjPeD4Fo69/pvLj4xG3TpnAnnsHg8NleNAkC6A04mNHWQcVhkz wuGDoJ//qGyMMA3JetuNGeEw6iS5jkpl6cEhO8h9EAwNaSCmqsmUOeCU5PfYGCuQ38ph 2Gxszq66/gQ91KlzHvkTyqa3aYKWxSQpTVZLBvO1HYhUVvw0EZDZFIfhWSUF/CXMwJvA DOSXuUvfDpx1yoAOO9HDv0Jz+yNNo409/IjnRxjm07n4x5k2OLFhrWjflQtV7/FmO+4U FgLA== X-Received: by 10.70.42.104 with SMTP id n8mr9538739pdl.88.1431240426804; Sat, 09 May 2015 23:47:06 -0700 (PDT) Received: from localhost.localdomain ([1.187.131.149]) by mx.google.com with ESMTPSA id qy7sm9531527pbb.12.2015.05.09.23.46.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 May 2015 23:47:06 -0700 (PDT) From: Vishnu Patekar To: maxime.ripard@free-electrons.com, emilio@elopez.com.ar, linus.walleij@linaro.org, robh+dt@kernel.org Subject: [PATCH 1/6] ARM: sunxi: Add Machine support for A33 Date: Sun, 10 May 2015 12:16:18 +0530 Message-Id: <1431240383-12763-2-git-send-email-vishnupatekar0510@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431240383-12763-1-git-send-email-vishnupatekar0510@gmail.com> References: <1431240383-12763-1-git-send-email-vishnupatekar0510@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150509_234727_999149_96F5E562 X-CRM114-Status: GOOD ( 11.29 ) X-Spam-Score: -0.6 (/) Cc: devicetree@vger.kernel.org, Vishnu Patekar , arnd@arndb.de, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, hdegoede@redhat.com, wens@csie.org, jenskuske@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Allwinnner A33 quad core cortex-a7 based SOC. It is similar to A23. Renamed cpu method to "allwinner,sun8i" for common sun8i smp. smp code is generic for A23, A33 and hopefully H3. Signed-off-by: Vishnu Patekar --- Documentation/devicetree/bindings/arm/sunxi.txt | 1 + arch/arm/mach-sunxi/Kconfig | 2 +- arch/arm/mach-sunxi/platsmp.c | 2 +- arch/arm/mach-sunxi/sunxi.c | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/sunxi.txt b/Documentation/devicetree/bindings/arm/sunxi.txt index 42941fd..e32f082 100644 --- a/Documentation/devicetree/bindings/arm/sunxi.txt +++ b/Documentation/devicetree/bindings/arm/sunxi.txt @@ -9,4 +9,5 @@ using one of the following compatible strings: allwinner,sun6i-a31 allwinner,sun7i-a20 allwinner,sun8i-a23 + allwinner,sun8i-a33 allwinner,sun9i-a80 diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 81502b9..38bedd8 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -35,7 +35,7 @@ config MACH_SUN7I select SUN5I_HSTIMER config MACH_SUN8I - bool "Allwinner A23 (sun8i) SoCs support" + bool "Allwinner (sun8i) SoCs support" default ARCH_SUNXI select ARM_GIC select MFD_SUN6I_PRCM diff --git a/arch/arm/mach-sunxi/platsmp.c b/arch/arm/mach-sunxi/platsmp.c index e8483ec..c56b501 100644 --- a/arch/arm/mach-sunxi/platsmp.c +++ b/arch/arm/mach-sunxi/platsmp.c @@ -189,4 +189,4 @@ struct smp_operations sun8i_smp_ops __initdata = { .smp_prepare_cpus = sun8i_smp_prepare_cpus, .smp_boot_secondary = sun8i_smp_boot_secondary, }; -CPU_METHOD_OF_DECLARE(sun8i_a23_smp, "allwinner,sun8i-a23", &sun8i_smp_ops); +CPU_METHOD_OF_DECLARE(sun8i_smp, "allwinner,sun8i", &sun8i_smp_ops); diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c index 1bc811a..8937d0d 100644 --- a/arch/arm/mach-sunxi/sunxi.c +++ b/arch/arm/mach-sunxi/sunxi.c @@ -66,11 +66,11 @@ DT_MACHINE_START(SUN7I_DT, "Allwinner sun7i (A20) Family") MACHINE_END static const char * const sun8i_board_dt_compat[] = { - "allwinner,sun8i-a23", + "allwinner,sun8i", NULL, }; -DT_MACHINE_START(SUN8I_DT, "Allwinner sun8i (A23) Family") +DT_MACHINE_START(SUN8I_DT, "Allwinner sun8i Family") .dt_compat = sun8i_board_dt_compat, .init_late = sunxi_dt_cpufreq_init, MACHINE_END