* [PATCH 00/03] ARM: shmobile: r7s72100 Genmai DT reference and multiplatform
@ 2013-11-06 23:30 Magnus Damm
2013-11-06 23:31 ` [PATCH 01/03] ARM: shmobile: r7s72100 Genmai DT reference DTS bits Magnus Damm
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Magnus Damm @ 2013-11-06 23:30 UTC (permalink / raw)
To: linux-arm-kernel
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.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
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(-)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 01/03] ARM: shmobile: r7s72100 Genmai DT reference DTS bits
2013-11-06 23:30 [PATCH 00/03] ARM: shmobile: r7s72100 Genmai DT reference and multiplatform Magnus Damm
@ 2013-11-06 23:31 ` Magnus Damm
2013-11-08 7:52 ` Simon Horman
2013-11-06 23:31 ` [PATCH 02/03] ARM: shmobile: r7s72100 Genmai DT reference C bits Magnus Damm
2013-11-06 23:31 ` [PATCH 03/03] ARM: shmobile: r7s72100 Genmai Multiplatform Magnus Damm
2 siblings, 1 reply; 7+ messages in thread
From: Magnus Damm @ 2013-11-06 23:31 UTC (permalink / raw)
To: linux-arm-kernel
From: Magnus Damm <damm@opensource.se>
Add the DT bits for r7s72100 Genmai DT reference support.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
arch/arm/boot/dts/Makefile | 1
arch/arm/boot/dts/r7s72100-genmai-reference.dts | 31 +++++++++++++++++++++++
2 files changed, 32 insertions(+)
--- 0013/arch/arm/boot/dts/Makefile
+++ work/arch/arm/boot/dts/Makefile 2013-11-06 19:16:15.000000000 +0900
@@ -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 \
--- /dev/null
+++ work/arch/arm/boot/dts/r7s72100-genmai-reference.dts 2013-11-06 19:16:16.000000000 +0900
@@ -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>;
+ };
+};
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 02/03] ARM: shmobile: r7s72100 Genmai DT reference C bits
2013-11-06 23:30 [PATCH 00/03] ARM: shmobile: r7s72100 Genmai DT reference and multiplatform Magnus Damm
2013-11-06 23:31 ` [PATCH 01/03] ARM: shmobile: r7s72100 Genmai DT reference DTS bits Magnus Damm
@ 2013-11-06 23:31 ` Magnus Damm
2013-11-08 7:51 ` Simon Horman
2013-11-06 23:31 ` [PATCH 03/03] ARM: shmobile: r7s72100 Genmai Multiplatform Magnus Damm
2 siblings, 1 reply; 7+ messages in thread
From: Magnus Damm @ 2013-11-06 23:31 UTC (permalink / raw)
To: linux-arm-kernel
From: Magnus Damm <damm@opensource.se>
Add C code support for r7s72100 Genmai DT reference.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
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(-)
--- 0013/arch/arm/mach-shmobile/Kconfig
+++ work/arch/arm/mach-shmobile/Kconfig 2013-11-06 19:14:25.000000000 +0900
@@ -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
--- 0013/arch/arm/mach-shmobile/Makefile
+++ work/arch/arm/mach-shmobile/Makefile 2013-11-06 19:14:25.000000000 +0900
@@ -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
--- 0004/arch/arm/mach-shmobile/Makefile.boot
+++ work/arch/arm/mach-shmobile/Makefile.boot 2013-11-06 19:14:25.000000000 +0900
@@ -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
--- /dev/null
+++ work/arch/arm/mach-shmobile/board-genmai-reference.c 2013-11-06 19:14:26.000000000 +0900
@@ -0,0 +1,44 @@
+/*
+ * Genmai board support
+ *
+ * Copyright (C) 2013 Renesas Solutions Corp.
+ * Copyright (C) 2013 Magnus Damm
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <linux/kernel.h>
+#include <linux/of_platform.h>
+#include <mach/common.h>
+#include <mach/r7s72100.h>
+#include <asm/mach-types.h>
+#include <asm/mach/arch.h>
+
+static void __init genmai_add_standard_devices(void)
+{
+ r7s72100_clock_init();
+ r7s72100_add_dt_devices();
+ of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+}
+
+static const char * const genmai_boards_compat_dt[] __initconst = {
+ "renesas,genmai-reference",
+ NULL,
+};
+
+DT_MACHINE_START(GENMAI_DT, "genmai")
+ .init_early = r7s72100_init_early,
+ .init_machine = genmai_add_standard_devices,
+ .dt_compat = genmai_boards_compat_dt,
+MACHINE_END
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 03/03] ARM: shmobile: r7s72100 Genmai Multiplatform
2013-11-06 23:30 [PATCH 00/03] ARM: shmobile: r7s72100 Genmai DT reference and multiplatform Magnus Damm
2013-11-06 23:31 ` [PATCH 01/03] ARM: shmobile: r7s72100 Genmai DT reference DTS bits Magnus Damm
2013-11-06 23:31 ` [PATCH 02/03] ARM: shmobile: r7s72100 Genmai DT reference C bits Magnus Damm
@ 2013-11-06 23:31 ` Magnus Damm
2013-11-08 7:51 ` Simon Horman
2 siblings, 1 reply; 7+ messages in thread
From: Magnus Damm @ 2013-11-06 23:31 UTC (permalink / raw)
To: linux-arm-kernel
From: Magnus Damm <damm@opensource.se>
Add r7s72100 Genmai to SHMOBILE_MULTI.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
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(+)
--- 0015/arch/arm/boot/dts/Makefile
+++ work/arch/arm/boot/dts/Makefile 2013-11-06 19:18:41.000000000 +0900
@@ -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
--- 0016/arch/arm/mach-shmobile/Kconfig
+++ work/arch/arm/mach-shmobile/Kconfig 2013-11-06 19:20:36.000000000 +0900
@@ -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
--- 0016/arch/arm/mach-shmobile/Makefile
+++ work/arch/arm/mach-shmobile/Makefile 2013-11-06 19:20:59.000000000 +0900
@@ -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
--- 0016/arch/arm/mach-shmobile/board-genmai-reference.c
+++ work/arch/arm/mach-shmobile/board-genmai-reference.c 2013-11-06 19:19:53.000000000 +0900
@@ -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);
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 03/03] ARM: shmobile: r7s72100 Genmai Multiplatform
2013-11-06 23:31 ` [PATCH 03/03] ARM: shmobile: r7s72100 Genmai Multiplatform Magnus Damm
@ 2013-11-08 7:51 ` Simon Horman
0 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2013-11-08 7:51 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 07, 2013 at 08:31:25AM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
>
> Add r7s72100 Genmai to SHMOBILE_MULTI.
>
> Signed-off-by: Magnus Damm <damm@opensource.se>
Thanks, I have queued this up.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 02/03] ARM: shmobile: r7s72100 Genmai DT reference C bits
2013-11-06 23:31 ` [PATCH 02/03] ARM: shmobile: r7s72100 Genmai DT reference C bits Magnus Damm
@ 2013-11-08 7:51 ` Simon Horman
0 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2013-11-08 7:51 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 07, 2013 at 08:31:16AM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
>
> Add C code support for r7s72100 Genmai DT reference.
Thanks, I have queued this up.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 01/03] ARM: shmobile: r7s72100 Genmai DT reference DTS bits
2013-11-06 23:31 ` [PATCH 01/03] ARM: shmobile: r7s72100 Genmai DT reference DTS bits Magnus Damm
@ 2013-11-08 7:52 ` Simon Horman
0 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2013-11-08 7:52 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 07, 2013 at 08:31:07AM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
>
> Add the DT bits for r7s72100 Genmai DT reference support.
>
> Signed-off-by: Magnus Damm <damm@opensource.se>
Thanks, I have queued this up.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-11-08 7:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-06 23:30 [PATCH 00/03] ARM: shmobile: r7s72100 Genmai DT reference and multiplatform Magnus Damm
2013-11-06 23:31 ` [PATCH 01/03] ARM: shmobile: r7s72100 Genmai DT reference DTS bits Magnus Damm
2013-11-08 7:52 ` Simon Horman
2013-11-06 23:31 ` [PATCH 02/03] ARM: shmobile: r7s72100 Genmai DT reference C bits Magnus Damm
2013-11-08 7:51 ` Simon Horman
2013-11-06 23:31 ` [PATCH 03/03] ARM: shmobile: r7s72100 Genmai Multiplatform Magnus Damm
2013-11-08 7:51 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).