From patchwork Sun Jun 12 21:01:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9171633 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 D44C8604DB for ; Sun, 12 Jun 2016 21:03:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C722C206AC for ; Sun, 12 Jun 2016 21:03:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBB8224B44; Sun, 12 Jun 2016 21:03:43 +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 715C0206AC for ; Sun, 12 Jun 2016 21:03:43 +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 1bCCWP-0004st-PT; Sun, 12 Jun 2016 21:02:17 +0000 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bCCWM-0004s8-C0 for linux-arm-kernel@lists.infradead.org; Sun, 12 Jun 2016 21:02:15 +0000 Received: by mail-lf0-x22c.google.com with SMTP id j7so50146025lfg.1 for ; Sun, 12 Jun 2016 14:01:53 -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=mn9yvh0+C1ShFDlr8n8gfAYeBaUzbsoYktgzanCsbkiq908nRBde3IUhE5JSES/4RA mZ+sZ6nwZA4bjnD3u/oCLlJJNwLCOhArJNwGLcCp0RTAkEU+WJcjaJ74rzFD8LNb73fg iY+HcjP8Uk9DQ7frYhjKJ0de94m0lK/9chLtrP9P+PXFFjpFyTPv5JBm5wJP1O1c5Yws R95sjywJfRwLkJfpXRH5iO2npwpZ8oNVjXrZ3ELwrK4kNUBnVF9p6F23H9397FUqDksn kvwOWlgj12SUEkuePou/kyVj9fokwgy0g6bZ+6ZCjzx7KaGLPKG1hbVfVKEfxuXrrITZ JL9w== 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=ITedBtmLMKZe7aUvTSZetwYX5lhCAOGJ6jJSNIBxOoSFuHbsa95Jksu8LfmTndCV7d WT6WbOG/32FJ+TSF//9zxJpVolBBD13T8slrLw3LfbfdEVs6J6KqtlKmu5PGsxL/OPf6 ym3OvUuUeMu/iTewBhg0qifo3TEt6C7JEsly8GykaPGXSM8vyGPK1ThGDX4DcDkDm5Fq KoJhRfP8tt5+DKNIbESVVgwh6QCjx4o9Ljt9UdznsiEzj3iTwWBMYF81yglNNYLXp+0t w+xXfhjLv0bwZlIRm8hMDKIX+cqS6J6x1uK2CeDEj9TykgiqjPMGn4Y/N5et/JTp89j1 NHWQ== X-Gm-Message-State: ALyK8tJ53C9M0/fhSc3Dcg0q3+JgjoCx/8U+jiC6wGQhbOaEt1g5KmsN8/liCZhHqmk1OQ== X-Received: by 10.46.71.18 with SMTP id u18mr2389588lja.20.1465765312290; Sun, 12 Jun 2016 14:01:52 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.235]) by smtp.gmail.com with ESMTPSA id h11sm1790436ljh.33.2016.06.12.14.01.50 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Jun 2016 14:01:51 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org Subject: [PATCH v5 04/12] ARM: shmobile: r8a7792: basic SoC support Date: Mon, 13 Jun 2016 00:01:49 +0300 Message-ID: <2263631.FdTI6u9Ha0@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.4.12-200.fc22.x86_64; KDE/4.14.17; x86_64; ; ) In-Reply-To: <14666252.G84Ipxe6EL@wasted.cogentembedded.com> References: <14666252.G84Ipxe6EL@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160612_140214_605874_EB7D4058 X-CRM114-Status: GOOD ( 12.62 ) 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