From patchwork Fri Aug 29 18:15:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 4812021 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E5EBD9F37E for ; Fri, 29 Aug 2014 18:15:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0CD7B2011B for ; Fri, 29 Aug 2014 18:15:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A3D4620125 for ; Fri, 29 Aug 2014 18:15:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753254AbaH2SP1 (ORCPT ); Fri, 29 Aug 2014 14:15:27 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:64723 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752914AbaH2SP0 (ORCPT ); Fri, 29 Aug 2014 14:15:26 -0400 Received: by mail-wi0-f175.google.com with SMTP id ho1so9533601wib.8 for ; Fri, 29 Aug 2014 11:15:24 -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=R2m/F9rfxeuQDlM2AYkBB6XPEHCXEDQnMg/ZAI8fcbg=; b=F2ZI/1RosNTvG13K7LZ3FXnQEI1hm88cQvBcSdHU7IxKAdHebp4OfT/HEciqdl0dc0 P8fmVM7eLne+IV+ZIXwingyCMm+lpZ7KGAejH68y1zu079vvC8CtQ0mAl8NqRT3TqZeS e9LaPBG9u1mrjKlE2qw4K3IzXC4Spxp5yBctRHlPXHmU5sNSlrCm0aOfWcQmKVQ9DYqV yh9oN/YzwNxD4zS6flSAO2/s/qn+znLj4wEXFB3Mi2yB4RJGTOStd411bNVqsb2q6i92 jL66zq9j8GhPLhakp7GY+KrbK5lLXVpcgJ5TEp+37fXiWua+dnlgHoPkWZYgiWpfunmw qJCw== X-Received: by 10.180.102.105 with SMTP id fn9mr5438285wib.27.1409336124892; Fri, 29 Aug 2014 11:15:24 -0700 (PDT) Received: from groucho.site ([91.108.183.74]) by mx.google.com with ESMTPSA id dc9sm49453125wib.5.2014.08.29.11.15.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Aug 2014 11:15:24 -0700 (PDT) From: Ulrich Hecht To: horms@verge.net.au Cc: linux-sh@vger.kernel.org, mturquette@linaro.org, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH v2 2/6] ARM: shmobile: Initial r8a7794 SoC support Date: Fri, 29 Aug 2014 20:15:06 +0200 Message-Id: <1409336110-32734-3-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1409336110-32734-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1409336110-32734-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.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SBL, RP_MATCHES_RCVD, T_DKIM_INVALID,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 Initial support for the r8a7794 SoC, based on work by Hisashi Nakamura. Signed-off-by: Ulrich Hecht --- arch/arm/mach-shmobile/Kconfig | 4 ++++ arch/arm/mach-shmobile/Makefile | 1 + arch/arm/mach-shmobile/setup-r8a7794.c | 35 ++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 arch/arm/mach-shmobile/setup-r8a7794.c diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index c1023d7..1168ead 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -67,6 +67,10 @@ config ARCH_R8A7791 bool "R-Car M2 (R8A77910)" select ARCH_RCAR_GEN2 +config ARCH_R8A7794 + bool "R-Car E2 (R8A77940)" + select ARCH_RCAR_GEN2 + comment "Renesas ARM SoCs Board Type" config MACH_KOELSCH diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 5625a87..e283346 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -14,6 +14,7 @@ obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o pm-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o pm-r8a7790.o obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o pm-r8a7791.o +obj-$(CONFIG_ARCH_R8A7794) += setup-r8a7794.o obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o diff --git a/arch/arm/mach-shmobile/setup-r8a7794.c b/arch/arm/mach-shmobile/setup-r8a7794.c new file mode 100644 index 0000000..05e970c --- /dev/null +++ b/arch/arm/mach-shmobile/setup-r8a7794.c @@ -0,0 +1,35 @@ +/* + * r8a7794 processor support + * + * Copyright (C) 2014 Renesas Electronics Corporation + * Copyright (C) 2014 Ulrich Hecht + * + * 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 "common.h" +#include "rcar-gen2.h" +#include + +#ifdef CONFIG_USE_OF + +static const char * const r8a7794_boards_compat_dt[] __initconst = { + "renesas,r8a7794", + NULL, +}; + +DT_MACHINE_START(R8A7794_DT, "Generic R8A7794 (Flattened Device Tree)") + .init_early = shmobile_init_delay, + .init_late = shmobile_init_late, + .init_time = rcar_gen2_timer_init, + .dt_compat = r8a7794_boards_compat_dt, +MACHINE_END +#endif /* CONFIG_USE_OF */