From patchwork Thu May 21 10:50:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 6453981 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7DF949F399 for ; Thu, 21 May 2015 10:50:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BD9320435 for ; Thu, 21 May 2015 10:50:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B706320382 for ; Thu, 21 May 2015 10:50:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752457AbbEUKuV (ORCPT ); Thu, 21 May 2015 06:50:21 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:35171 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752515AbbEUKuU (ORCPT ); Thu, 21 May 2015 06:50:20 -0400 Received: by wicmx19 with SMTP id mx19so10135798wic.0 for ; Thu, 21 May 2015 03:50:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=8pRKWVQizFzyI3WBrd7sQQs7MtoKS/jocvtnbYi/9DU=; b=tqSAvss4TQMxX5+3CJqL+hnB6yfOpdT3pEebOANfXYfbc1rt5uvFjNsnNQKHaDMgUJ b/klF4DHtPWFtx0OEe6e/1K2ovj88wea+/lvgNMq74nZRBXAJjWCOa6Zfc9KJpPhmlfP VWc8Rmjt8RCWF+ACi3aOBBNeCILAiSmvBg+xbcnp6NUALZX8VmEyPLoDsuYf7SxjOOAr koaAOXa4tkaxggjo3BMLEMPzHmVhUr3Aur25Yl4Uk7hNTLgsyvxJYQ+Y8IP2MNS72xDY ytYLPhpvwmeZSaMg3psjyI7+xShcrpLW/fol1dGzzhMXhDGhWy+Hh6a7VCpUKLBniTbv wWTg== X-Received: by 10.180.100.74 with SMTP id ew10mr51944213wib.12.1432205419624; Thu, 21 May 2015 03:50:19 -0700 (PDT) Received: from groucho.site (ipbcc02225.dynamic.kabel-deutschland.de. [188.192.34.37]) by mx.google.com with ESMTPSA id it5sm2255631wid.3.2015.05.21.03.50.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 May 2015 03:50:18 -0700 (PDT) From: Ulrich Hecht To: linux-sh@vger.kernel.org, laurent.pinchart+renesas@ideasonboard.com Cc: horms@verge.net.au, magnus.damm@gmail.com, Ulrich Hecht Subject: [RFC 1/3] ARM: shmobile: rcar-gen2: Add generic "renesas, rcar-gen2" machine Date: Thu, 21 May 2015 12:50:11 +0200 Message-Id: <1432205413-9584-2-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.3.5 In-Reply-To: <1432205413-9584-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1432205413-9584-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This will do for all Gen2 SoCs that do not need SoC-specific setup. Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/arm/shmobile.txt | 8 ++++++-- arch/arm/mach-shmobile/setup-rcar-gen2.c | 13 +++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/shmobile.txt b/Documentation/devicetree/bindings/arm/shmobile.txt index c4f19b2..29886ab 100644 --- a/Documentation/devicetree/bindings/arm/shmobile.txt +++ b/Documentation/devicetree/bindings/arm/shmobile.txt @@ -27,12 +27,16 @@ SoCs: compatible = "renesas,r8a7793" - R-Car E2 (R8A77940) compatible = "renesas,r8a7794" + - R-Car Gen2 (Generic R-Car Generation 2 SoC) + This applies to Generation 2 R-Car SoCs that do not require SoC-specific + setup code. + compatible = "renesas,rcar-gen2" Boards: - Alt - compatible = "renesas,alt", "renesas,r8a7794" + compatible = "renesas,alt", "renesas,r8a7794", "renesas,rcar-gen2" - APE6-EVM compatible = "renesas,ape6evm", "renesas,r8a73a4" - Atmark Techno Armadillo-800 EVA @@ -44,7 +48,7 @@ Boards: - Genmai (RTK772100BC00000BR) compatible = "renesas,genmai", "renesas,r7s72100" - Gose - compatible = "renesas,gose", "renesas,r8a7793" + compatible = "renesas,gose", "renesas,r8a7793", "renesas,rcar-gen2" - Henninger compatible = "renesas,henninger", "renesas,r8a7791" - Koelsch (RTP0RC7791SEB00010S) diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c index 5d13595..0f6b48b 100644 --- a/arch/arm/mach-shmobile/setup-rcar-gen2.c +++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c @@ -201,3 +201,16 @@ void __init rcar_gen2_reserve(void) &rcar_gen2_dma_contiguous, true); #endif } + +static const char *rcar_gen2_boards_compat_dt[] __initconst = { + "renesas,rcar-gen2", + NULL, +}; + +DT_MACHINE_START(RCAR_GEN2_DT, "Generic R-Car Gen2 (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 = rcar_gen2_boards_compat_dt, +MACHINE_END