ARM: shmobile: r7s72100 Genmai DT reference and multiplatform
Subsystems (6)
Magnus Damm
maintainercover ARM: shmobile: r7s72100 Genmai DT reference and multiplatform
ARM: shmobile: r7s72100 Genmai DT reference and multiplatform
[PATCH 01/03] ARM: shmobile: r7s72100 Genmai DT reference DTS bits [PATCH 02/03] ARM: shmobile: r7s72100 Genmai DT reference C bits [PATCH 03/03] ARM: shmobile: r7s72100 Genmai Multiplatform
Add r7s72100 Genmai DT reference support and add it to SHMOBILE_MULTI. To use multiplatform support CCF is also needed, so at this point Genmai multiplatform is build-only until CCF makes it possible to boot the board.
---
Written against renesas.git tag renesas-devel-v3.12-rc7-20131101 and [PATCH] ARM: shmobile: Initial r8a7791 and Koelsch multiplatform support
arch/arm/boot/dts/Makefile | 2 arch/arm/boot/dts/r7s72100-genmai-reference.dts | 31 ++++++++++++++ arch/arm/mach-shmobile/Kconfig | 18 ++++++++ arch/arm/mach-shmobile/Makefile | 2 arch/arm/mach-shmobile/Makefile.boot | 3 - arch/arm/mach-shmobile/board-genmai-reference.c | 49 +++++++++++++++++++++++ 6 files changed, 104 insertions(+), 1 deletion(-)
Magnus Damm
maintainerPATCH 1/3 ARM: shmobile: r7s72100 Genmai DT reference DTS bits
From: Magnus Damm <[email protected]>
Add the DT bits for r7s72100 Genmai DT reference support.
---
arch/arm/boot/dts/Makefile | 1 arch/arm/boot/dts/r7s72100-genmai-reference.dts | 31 +++++++++++++++++++++++ 2 files changed, 32 insertions(+)
arch/arm/boot/dts/Makefile +1 -0
@@ -199,6 +199,7 @@ dtb-$(CONFIG_ARCH_U8500) += ste-snowball dtb-$(CONFIG_ARCH_S3C24XX) += s3c2416-smdk2416.dtb dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \ r7s72100-genmai.dtb \ + r7s72100-genmai-reference.dtb \ r8a7740-armadillo800eva.dtb \ r8a7778-bockw.dtb \ r8a7778-bockw-reference.dtb \
arch/arm/boot/dts/r7s72100-genmai-reference.dts new file +31 -0
@@ -0,0 +1,31 @@ +/* + * Device Tree Source for the Genmai board + * + * Copyright (C) 2013 Renesas Solutions Corp. + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +/dts-v1/; +/include/ "r7s72100.dtsi" + +/ { + model = "Genmai"; + compatible = "renesas,genmai-reference", "renesas,r7s72100"; + + chosen { + bootargs = "console=ttySC2,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; + }; + + memory { + device_type = "memory"; + reg = <0x08000000 0x08000000>; + }; + + lbsc { + #address-cells = <1>; + #size-cells = <1>; + }; +};
PATCH 1/3 ARM: shmobile: r7s72100 Genmai DT reference DTS bits
Quoted 5 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Add the DT bits for r7s72100 Genmai DT reference support.
Signed-off-by Magnus Damm <[email protected]>
Thanks, I have queued this up.
Magnus Damm
maintainerPATCH 2/3 ARM: shmobile: r7s72100 Genmai DT reference C bits
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Add C code support for r7s72100 Genmai DT reference.
---
arch/arm/mach-shmobile/Kconfig | 11 +++++ arch/arm/mach-shmobile/Makefile | 1 arch/arm/mach-shmobile/Makefile.boot | 3 + arch/arm/mach-shmobile/board-genmai-reference.c | 44 +++++++++++++++++++++++ 4 files changed, 58 insertions(+), 1 deletion(-)
arch/arm/mach-shmobile/Kconfig +11 -0
@@ -201,6 +201,17 @@ config MACH_GENMAI depends on ARCH_R7S72100 select USE_OF +config MACH_GENMAI_REFERENCE + bool "Genmai board - Reference Device Tree Implementation" + depends on ARCH_R7S72100 + select USE_OF + ---help--- + Use reference implementation of Genmai board support + which makes use of device tree at the expense + of not supporting a number of devices. + + This is intended to aid developers + config MACH_MARZEN bool "MARZEN board" depends on ARCH_R8A7779
arch/arm/mach-shmobile/Makefile +1 -0
@@ -65,6 +65,7 @@ obj-$(CONFIG_MACH_MACKEREL) += board-mac obj-$(CONFIG_MACH_BOCKW) += board-bockw.o obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o obj-$(CONFIG_MACH_GENMAI) += board-genmai.o +obj-$(CONFIG_MACH_GENMAI_REFERENCE) += board-genmai-reference.o obj-$(CONFIG_MACH_MARZEN) += board-marzen.o obj-$(CONFIG_MACH_MARZEN_REFERENCE) += board-marzen-reference.o obj-$(CONFIG_MACH_LAGER) += board-lager.o
arch/arm/mach-shmobile/Makefile.boot +2 -1
@@ -6,7 +6,8 @@ loadaddr-$(CONFIG_MACH_ARMADILLO800EVA) loadaddr-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += 0x40008000 loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000 loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 -loadaddr-$(CONFIG_MACH_GENMAI) += 0x8008000 +loadaddr-$(CONFIG_MACH_GENMAI) += 0x08008000 +loadaddr-$(CONFIG_MACH_GENMAI_REFERENCE) += 0x08008000 loadaddr-$(CONFIG_MACH_KOELSCH) += 0x40008000 loadaddr-$(CONFIG_MACH_KOELSCH_REFERENCE) += 0x40008000 loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000
arch/arm/mach-shmobile/board-genmai-reference.c new file +44 -0
44 lines not on this page · raw message
PATCH 2/3 ARM: shmobile: r7s72100 Genmai DT reference C bits
Quoted 3 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Add C code support for r7s72100 Genmai DT reference.
Thanks, I have queued this up.
Magnus Damm
maintainerPATCH 3/3 ARM: shmobile: r7s72100 Genmai Multiplatform
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Add r7s72100 Genmai to SHMOBILE_MULTI.
---
arch/arm/boot/dts/Makefile | 1 + arch/arm/mach-shmobile/Kconfig | 7 +++++++ arch/arm/mach-shmobile/Makefile | 1 + arch/arm/mach-shmobile/board-genmai-reference.c | 5 +++++ 4 files changed, 14 insertions(+)
arch/arm/boot/dts/Makefile +1 -0
@@ -216,6 +216,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm r8a73a4-ape6evm-reference.dtb \ sh7372-mackerel.dtb dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += emev2-kzm9d.dtb \ + r7s72100-genmai-reference.dtb \ r8a7791-koelsch-reference.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5.dtb \ socfpga_vt.dtb
arch/arm/mach-shmobile/Kconfig +7 -0
@@ -20,12 +20,19 @@ comment "SH-Mobile System Type" config ARCH_EMEV2 bool "Emma Mobile EV2" +config ARCH_R7S72100 + bool "RZ/A1H (R7S72100)" + config ARCH_R8A7791 bool "R-Car M2 (R8A77910)" select RENESAS_IRQC comment "SH-Mobile Board Type" +config MACH_GENMAI + bool "Genmai board" + depends on ARCH_R7S72100 + config MACH_KOELSCH bool "Koelsch board" depends on ARCH_R8A7791
arch/arm/mach-shmobile/Makefile +1 -0
@@ -56,6 +56,7 @@ obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779 # Board objects ifdef CONFIG_ARCH_SHMOBILE_MULTI +obj-$(CONFIG_MACH_GENMAI) += board-genmai-reference.o obj-$(CONFIG_MACH_KOELSCH) += board-koelsch-reference.o obj-$(CONFIG_MACH_KZM9D) += board-kzm9d-reference.o else
arch/arm/mach-shmobile/board-genmai-reference.c +5 -0
@@ -18,6 +18,7 @@* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <linux/clk-provider.h> #include <linux/kernel.h> #include <linux/of_platform.h> #include <mach/common.h>
@@ -27,7 +28,11 @@static void __init genmai_add_standard_devices (void ) { +#ifdef CONFIG_COMMON_CLK +of_clk_init (NULL ); +#else r7s72100_clock_init (); +#endif r7s72100_add_dt_devices ();of_platform_populate (NULL , of_default_bus_match_table,NULL ,NULL ); }
PATCH 3/3 ARM: shmobile: r7s72100 Genmai Multiplatform
Quoted 5 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Add r7s72100 Genmai to
SHMOBILE_MULTI.Signed-off-by Magnus Damm <[email protected]>
Thanks, I have queued this up.