From patchwork Thu Jun 9 21:36:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9168211 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 3A5A860467 for ; Thu, 9 Jun 2016 21:39:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C5EF26E1A for ; Thu, 9 Jun 2016 21:39:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 215AF2832A; Thu, 9 Jun 2016 21:39:08 +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 C496226E1A for ; Thu, 9 Jun 2016 21:39:07 +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 1bB7dP-0003vP-Q2; Thu, 09 Jun 2016 21:37:03 +0000 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bB7dN-0003sB-93 for linux-arm-kernel@lists.infradead.org; Thu, 09 Jun 2016 21:37:02 +0000 Received: by mail-lf0-x22d.google.com with SMTP id j5so34543766lfb.3 for ; Thu, 09 Jun 2016 14:36: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=hLQ/QDLTzWrzgF9mt62MUZlOASc0wGdb7yoVRZZYwSk=; b=wKsQMOpXxaaDDdYkrxMwkihKKIa/P0dviTmBMVJlY9jgtX7x6V7j5metAZnQL9ujs7 DA13zWdOf2mXyFxGJrfjR4PMX/7l29x5qDPw5bfSn/29BcJ8hP+lkPAaBBqmdBoGQ/kc opG3P6PoT+biecZW2eO3q2OnOttCELrLa7RpSaZkHI7WKMbHh9bDnS/yFpTn5LrKlanx Se3VSRPVSYg3eBhdBwtzCB1zr0IrHYw5S50lo5uoYUIs/1aqKGF59yLQhFCCCEjKr5HX Me1ymsAUnAwrsya4uV8uCDbWEZDGtF/hdKEiBrhk1Gbzf0zHIJhcnokSCf8PWugXQ/JT PXSA== 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=hLQ/QDLTzWrzgF9mt62MUZlOASc0wGdb7yoVRZZYwSk=; b=LUtfFljSnp4h/69BBpL0B1AZRoCTiSZXCTSo2MzVr2xcfJO+thI/HrP33g5Ea1PGE5 l0+ctM1UGEjCAlWsSeisZf/pTzuqKb5ql0d5YTJUAGZ4gkEJn404K3UIKIO/9uvRfO9q MZu78dgblLyRUqVHgG3kTevDneIMzO88SuKg1Vg6s704mO2qtxRN0c4+JXWTmdD3WBxM edHCtVCfjt/zyqfxok7dvU1JLYosmm7sR/Rr9P664thAU2tzJaE2G7uxNCzJLXgLj+nh 9k9iInWV4ilZ3O1/Qf3bFMlTdxvpt/2S68OqHPTh/FwqF9pXSPYG4+5OczJB4bYlhy26 dWqg== X-Gm-Message-State: ALyK8tJ9NxGQZHixGMQvVWdCFdNcS8o2lIK2IVR8OHFTnF0jc5QXAIGt+zD2vfmy2gMgjw== X-Received: by 10.25.213.78 with SMTP id m75mr7834679lfg.85.1465508199290; Thu, 09 Jun 2016 14:36:39 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.80.139]) by smtp.gmail.com with ESMTPSA id z1sm873530lbw.2.2016.06.09.14.36.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Jun 2016 14:36:38 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org Subject: [PATCH v4 04/12] ARM: shmobile: r8a7792: basic SoC support Date: Fri, 10 Jun 2016 00:36:37 +0300 Message-ID: <3402504.y4Ms7l6u2i@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.4.11-200.fc22.x86_64; KDE/4.14.17; x86_64; ; ) In-Reply-To: <1879394.3zBGLpF2nv@wasted.cogentembedded.com> References: <1879394.3zBGLpF2nv@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160609_143701_614684_42C4054A X-CRM114-Status: GOOD ( 12.78 ) 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 R-Car V2H (R8A7792) SoC. Signed-off-by: Sergei Shtylyov Acked-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- Changes in version 3: - added Cogent Embedded's copyright; - removed a supefluous space in Renesas Electronics' copyright. Changes in version 2: - removed 'select I2C'; - added Simon's ACK and Geert's tag too. arch/arm/mach-shmobile/Kconfig | 4 +++ arch/arm/mach-shmobile/Makefile | 1 arch/arm/mach-shmobile/setup-r8a7792.c | 35 +++++++++++++++++++++++++++++++++ 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 @@ -86,6 +86,10 @@ config ARCH_R8A7791 select ARCH_RCAR_GEN2 select I2C +config ARCH_R8A7792 + bool "R-Car V2H (R8A77920)" + select ARCH_RCAR_GEN2 + config ARCH_R8A7793 bool "R-Car M2-N (R8A7793)" select ARCH_RCAR_GEN2 Index: renesas/arch/arm/mach-shmobile/Makefile =================================================================== --- renesas.orig/arch/arm/mach-shmobile/Makefile +++ renesas/arch/arm/mach-shmobile/Makefile @@ -13,6 +13,7 @@ obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7 obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o pm-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o +obj-$(CONFIG_ARCH_R8A7792) += setup-r8a7792.o obj-$(CONFIG_ARCH_R8A7793) += setup-r8a7793.o obj-$(CONFIG_ARCH_R8A7794) += setup-r8a7794.o obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o Index: renesas/arch/arm/mach-shmobile/setup-r8a7792.c =================================================================== --- /dev/null +++ renesas/arch/arm/mach-shmobile/setup-r8a7792.c @@ -0,0 +1,35 @@ +/* + * r8a7792 processor support + * + * Copyright (C) 2014 Renesas Electronics Corporation + * 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 as published by + * the Free Software Foundation; version 2 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 r8a7792_boards_compat_dt[] __initconst = { + "renesas,r8a7792", + NULL, +}; + +DT_MACHINE_START(R8A7792_DT, "Generic R8A7792 (Flattened Device Tree)") + .init_early = shmobile_init_delay, + .init_late = shmobile_init_late, + .init_time = rcar_gen2_timer_init, + .reserve = rcar_gen2_reserve, + .dt_compat = r8a7792_boards_compat_dt, +MACHINE_END