From patchwork Fri Sep 16 13:33:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9335825 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F291860839 for ; Fri, 16 Sep 2016 13:35:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5A5E27E3E for ; Fri, 16 Sep 2016 13:35:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA52429FA3; Fri, 16 Sep 2016 13:35:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CB74B27E3E for ; Fri, 16 Sep 2016 13:35:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bktHN-0001ER-W3; Fri, 16 Sep 2016 13:34:10 +0000 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bktHG-000120-01 for linux-arm-kernel@lists.infradead.org; Fri, 16 Sep 2016 13:34:03 +0000 Received: by mail-lf0-x231.google.com with SMTP id u14so66010562lfd.1 for ; Fri, 16 Sep 2016 06:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=/M4GLQRLwTn3o71aJx0MmjCU7gVAkrSBLZ8FrxDNr/o=; b=auXAG/j30nLj1JTyMwxiV2RSn1HLDN+GLG8AMpqpuIJuyM0Dn3fDQ9LHqYIUjU0w4C csmgPZ9y37OkoMISZQPYByA2wTolg0svEcL/XQQ7+oNL2mMLNIOTRxkKkQSh7Xvvwoel FWcYCISxK2bHSHJzxG4qV0GShVJjfTPc6Y0rkOqbQ3RgEroNfkBWWJp8jsrNwcPJb3el nz5LKKWYjLt+3y6b7GjEA1+DyXAeFKuJ+Os2zXYTV8sZkqiiIB+LRkbrUSaNs9qlQ6br vDC06C7lw5ZirQzvQgjRAg2WELzX7a/eXClyyGkR5iK9AjWeuFvqVwh4jLQRg04o5wAh VFPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=/M4GLQRLwTn3o71aJx0MmjCU7gVAkrSBLZ8FrxDNr/o=; b=EIfBWcIRvlcQ2SMDu4KjyOGEt7MVSHPLP/98UxO87dIM5vL0SVmPOY94oMrmeWufPC OT4Hv+01UyvS7OG+3AWncz2ZnzsNqoyZAh/60we3diNwBe5HNS2FruEZmuWjIbvkWEUX lVA1iD1fQNSsIlZdyLwAQwkAG7lxIQN18gh1YecsZ2hlScFKz/Tu59QRl8Q0e3m23V20 HdZsTDcennSM4Wpfrleqs6+XCtoLkrC13GUV06U/7t6eZ974aLJGoS5UNgNxom+WOsEr MYN1vtTcI5c9Gvg3StPlrJYelFoHc27sld25rWKdwok7hfJov7es7E7fQcAhm4iFyiSV WLTA== X-Gm-Message-State: AE9vXwNwG3QzzGiYNl4Ntgt2sTdMg7vff/hMLACYXk+xwuVdrFh87L76bYMhNv3VTHUxfA== X-Received: by 10.25.221.209 with SMTP id w78mr6546063lfi.124.1474032818692; Fri, 16 Sep 2016 06:33:38 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.193]) by smtp.gmail.com with ESMTPSA id s125sm2302162lja.14.2016.09.16.06.33.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Sep 2016 06:33:38 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org Subject: [PATCH RFC 4/8] ARM: shmobile: r8a7743: basic SoC support Date: Fri, 16 Sep 2016 16:33:35 +0300 Message-ID: <7093322.WFIWVqz40g@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.7.2-101.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <3533019.Wim1Kuh1ic@wasted.cogentembedded.com> References: <3533019.Wim1Kuh1ic@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160916_063402_272318_0309FF20 X-CRM114-Status: GOOD ( 12.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add minimal support for the RZ/G1M (R8A7743) SoC. Based on the original (and large) patch by Dmitry Shifrin . Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- arch/arm/mach-shmobile/Kconfig | 5 ++++ arch/arm/mach-shmobile/Makefile | 1 arch/arm/mach-shmobile/setup-r8a7743.c | 34 +++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) Index: renesas/arch/arm/mach-shmobile/Kconfig =================================================================== --- renesas.orig/arch/arm/mach-shmobile/Kconfig +++ renesas/arch/arm/mach-shmobile/Kconfig @@ -68,6 +68,11 @@ config ARCH_R8A7740 select ARCH_RMOBILE select RENESAS_INTC_IRQPIN +config ARCH_R8A7743 + bool "RZ/G1M (R8A77430)" + select ARCH_RCAR_GEN2 + select I2C + config ARCH_R8A7778 bool "R-Car M1A (R8A77781)" select ARCH_RCAR_GEN1 Index: renesas/arch/arm/mach-shmobile/Makefile =================================================================== --- renesas.orig/arch/arm/mach-shmobile/Makefile +++ renesas/arch/arm/mach-shmobile/Makefile @@ -9,6 +9,7 @@ obj-y := timer.o obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o +obj-$(CONFIG_ARCH_R8A7743) += setup-r8a7743.o obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o pm-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o Index: renesas/arch/arm/mach-shmobile/setup-r8a7743.c =================================================================== --- /dev/null +++ renesas/arch/arm/mach-shmobile/setup-r8a7743.c @@ -0,0 +1,34 @@ +/* + * r8a7743 processor support + * + * Copyright (C) 2016 Cogent Embedded, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include + +#include + +#include "common.h" +#include "rcar-gen2.h" + +static const char * const r8a7743_boards_compat_dt[] __initconst = { + "renesas,r8a7743", + NULL, +}; + +DT_MACHINE_START(R8A7743_DT, "Generic R8A7743 (Flattened Device Tree)") + .init_early = shmobile_init_delay, + .init_time = rcar_gen2_timer_init, + .init_late = shmobile_init_late, + .reserve = rcar_gen2_reserve, + .dt_compat = r8a7743_boards_compat_dt, +MACHINE_END