From patchwork Wed Jun 8 21:11:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9165711 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 2F48B60572 for ; Wed, 8 Jun 2016 21:13:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2022F27248 for ; Wed, 8 Jun 2016 21:13:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14FE028294; Wed, 8 Jun 2016 21:13:35 +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 B44C027248 for ; Wed, 8 Jun 2016 21:13:34 +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 1bAklZ-0002En-4B; Wed, 08 Jun 2016 21:11:57 +0000 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAklV-0002DR-NW for linux-arm-kernel@lists.infradead.org; Wed, 08 Jun 2016 21:11:54 +0000 Received: by mail-lf0-x231.google.com with SMTP id j5so13938238lfb.3 for ; Wed, 08 Jun 2016 14:11:33 -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=QtJAGOh9s5wvM2Nj+hhhDqraL6AcWFpMfMM4BdjtWPnlaXnbV+e79Ic0d1Tynomgow zNK4pH8++j980pGhAyyw8iftg9AOsC1HKcnF88PHMnx0nTFGQkbxwxM6HxEcUqc/V1l9 QOactCY+nzPxIiYUI+xGF4OAxHQehH7cqiaSSEDXzEsLe3xM93paurlhdNH5NkUP+130 B2krbXN0JCxNTmF6QP6R/0f6xTgMoL1xMVNUG0TpnI7Ot+bylcKwezeYVwBdTCLK1fIv wNSz3pTDFsS1jL4Tia7ZEqbQfr+6jfo+ICR4OiLHS2K2bfIjwQtJgfAL+iGHkgIPX7xR LSaQ== 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=P6oeYH6E7WMDDAvLkVdbSWvy968/GfIUBE9+7ujlHtR4FsSK5o9vdy3sOvvNTIP5TV O3EwagQQHDeNzE4YkHIh0oj5T1jwLUmBA0MnGYW8lpONqjBwmslz7jVk9f9VHWwJ/zzX Df20pgtCH3E5hqweWidwOHZteXejPm5ymjqE5VtFLOce+opt9R82aehnxYDae1YQMD+r sC/Bsh/qi8SudBZGPjzQcwdei0FSbLod6U4J5EkEssOMgde4h9JzyX++UeNbQ8oV1lyB KZS35d6xc6qVsshpBGzn/POX+SzcQAu+WCmtA2ZrLuAAnqjE3x/SjCp+DUrsV/AKCySf XwAw== X-Gm-Message-State: ALyK8tLonUs1T5T4w2rHPclpFdPHB4pspe8Mt+V2vAJJA0lFCsNontECLwBMHbvcR6uIJQ== X-Received: by 10.46.9.215 with SMTP id 206mr1891407ljj.63.1465420291680; Wed, 08 Jun 2016 14:11:31 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.233]) by smtp.gmail.com with ESMTPSA id h4sm331968ljh.29.2016.06.08.14.11.30 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Jun 2016 14:11:31 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org Subject: [PATCH v3 04/12] ARM: shmobile: r8a7792: basic SoC support Date: Thu, 09 Jun 2016 00:11:29 +0300 Message-ID: <63725827.hh7OmSSScd@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: <12536856.AsKMEpuejQ@wasted.cogentembedded.com> References: <12536856.AsKMEpuejQ@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160608_141153_965566_5AAFE80F X-CRM114-Status: GOOD ( 13.39 ) 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