From patchwork Mon Aug 18 15:51:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 4737761 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3E12AC0338 for ; Mon, 18 Aug 2014 15:52:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 66E362010B for ; Mon, 18 Aug 2014 15:52:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7BC6C20120 for ; Mon, 18 Aug 2014 15:52:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751423AbaHRPwO (ORCPT ); Mon, 18 Aug 2014 11:52:14 -0400 Received: from mail-la0-f52.google.com ([209.85.215.52]:36166 "EHLO mail-la0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbaHRPwN (ORCPT ); Mon, 18 Aug 2014 11:52:13 -0400 Received: by mail-la0-f52.google.com with SMTP id b17so4732074lan.11 for ; Mon, 18 Aug 2014 08:52:12 -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=sDZX5fT1LgZsSIMvLRdu2LmY+uYj5cchnbsnA0Eo9mc=; b=tmHRjwcTJ6gKKfPs8RxHbmX6QtEK2ZrUL4EInCk+LPMa2H3Y1FClnSA2rSSmO2rvo3 bTWFERgNaDH2Hqe7z/fJYUFwBuJvRDnRblWHdKzuEsVHIWxQGumN4guXuc9AAe+XQhQs fsLtZLwJTDfxvodakHbFDlhhNUnZWK485RYjn4Sk9s3T9IOxTm1ytEoaCTtwUNa9sqfO sfIMHiPTJES6IQjlPgL5zUFaSt+S/nCxQOVRGbHwRbRHSyCk0g2Ek8EBfjeOSI+dZskt uNkR+odeHexQ3BtsBtCNTd0VA3Dh1jlZwwgeX1/187fGTq74WIL3XhUEWkaFcv0B8n1N EvMA== X-Received: by 10.152.205.100 with SMTP id lf4mr30561269lac.8.1408377132369; Mon, 18 Aug 2014 08:52:12 -0700 (PDT) Received: from groucho.site ([46.166.186.241]) by mx.google.com with ESMTPSA id mi10sm27702193lbc.19.2014.08.18.08.52.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Aug 2014 08:52:11 -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 3/8] ARM: shmobile: Initial r8a7794 Alt board support Date: Mon, 18 Aug 2014 17:51:42 +0200 Message-Id: <1408377107-3822-4-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1408377107-3822-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1408377107-3822-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=-7.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 Minimal board support, based on work by Hisashi Nakamura. Signed-off-by: Ulrich Hecht --- arch/arm/mach-shmobile/Kconfig | 5 ++++ arch/arm/mach-shmobile/Makefile | 1 + arch/arm/mach-shmobile/board-alt-reference.c | 38 ++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 arch/arm/mach-shmobile/board-alt-reference.c diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 0ef01d4..9c4a670 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -62,6 +62,11 @@ config MACH_MARZEN depends on ARCH_R8A7779 select REGULATOR_FIXED_VOLTAGE if REGULATOR +config MACH_ALT + bool "Alt board" + depends on ARCH_R8A7794 + select MICREL_PHY if SH_ETH + comment "Renesas ARM SoCs System Configuration" endif diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index 315784f..ec0cd31 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -64,6 +64,7 @@ ifdef CONFIG_ARCH_SHMOBILE_MULTI obj-$(CONFIG_MACH_KOELSCH) += board-koelsch-reference.o obj-$(CONFIG_MACH_LAGER) += board-lager-reference.o obj-$(CONFIG_MACH_MARZEN) += board-marzen-reference.o +obj-$(CONFIG_MACH_ALT) += board-alt-reference.o else obj-$(CONFIG_MACH_APE6EVM) += board-ape6evm.o obj-$(CONFIG_MACH_APE6EVM_REFERENCE) += board-ape6evm-reference.o diff --git a/arch/arm/mach-shmobile/board-alt-reference.c b/arch/arm/mach-shmobile/board-alt-reference.c new file mode 100644 index 0000000..c74935e --- /dev/null +++ b/arch/arm/mach-shmobile/board-alt-reference.c @@ -0,0 +1,38 @@ +/* + * Alt board support - Reference DT implementation + * + * 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 + +static void __init alt_add_standard_devices(void) +{ + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); +} + +static const char * const alt_boards_compat_dt[] __initconst = { + "renesas,alt-reference", + NULL, +}; + +DT_MACHINE_START(ALT_DT, "alt") + .init_early = shmobile_init_delay, + .init_time = rcar_gen2_timer_init, + .init_machine = alt_add_standard_devices, + .init_late = shmobile_init_late, + .dt_compat = alt_boards_compat_dt, +MACHINE_END