From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulrich Hecht Date: Mon, 18 Aug 2014 15:51:42 +0000 Subject: [PATCH 3/8] ARM: shmobile: Initial r8a7794 Alt board support Message-Id: <1408377107-3822-4-git-send-email-ulrich.hecht+renesas@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org 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 -- 1.8.4.5