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: 9171631 X-Patchwork-Delegate: horms@verge.net.au 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 907ED604DB for ; Sun, 12 Jun 2016 21:01:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82CB4206AC for ; Sun, 12 Jun 2016 21:01:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7697324B44; Sun, 12 Jun 2016 21:01:57 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF4C1206AC for ; Sun, 12 Jun 2016 21:01:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932593AbcFLVBz (ORCPT ); Sun, 12 Jun 2016 17:01:55 -0400 Received: from mail-lf0-f44.google.com ([209.85.215.44]:36691 "EHLO mail-lf0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932521AbcFLVBy (ORCPT ); Sun, 12 Jun 2016 17:01:54 -0400 Received: by mail-lf0-f44.google.com with SMTP id q132so36171967lfe.3 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=JesCICQG5Y2pbt54O5Ueuj3MkoWE+5LwTWpKYIJjo29dTY//DVQDfbrTWHy0XuzUIv N4ANsRY7I6mkwxmL0JlgWd53+bo7Ls6ahIX3eJcWkvI9p73LUoB+FVBaxgd3zF4kUmmW v0JxFH2IP14oRjlC7x4FS27N2CHhi8R1Zw+lMFjVRU5mtX6ubd2K8lS1gpgOLquFHAzp v6R4OZd1lGEdWuk8K5L8AjcyPx0hW/EUNFSxLU0QdCD5Z69LSevqVjyi2fRDbXYIG0g+ MeYhc/TDOr52ZaWWYAxv2N2jSwSvmJbwwuipNuHY7SPkZ5f6Qvdj0fLMbW0q0mzAa2lx zCyQ== X-Gm-Message-State: ALyK8tI7ZdKFqy2qXvBCocqQkujIFiOvEiH7VLmQlO6qFuksbDXy5WLhNhaq2B92j02DdA== 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 Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.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 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.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