SUPERH platform development
 help / color / mirror / Atom feed
* [RFC 1/3] ARM: shmobile: rcar-gen2: Add generic "renesas,rcar-gen2" machine
@ 2015-05-21 10:50 Ulrich Hecht
  2015-05-23 18:02 ` Laurent Pinchart
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ulrich Hecht @ 2015-05-21 10:50 UTC (permalink / raw)
  To: linux-sh

This will do for all Gen2 SoCs that do not need SoC-specific setup.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
 Documentation/devicetree/bindings/arm/shmobile.txt |  8 ++++++--
 arch/arm/mach-shmobile/setup-rcar-gen2.c           | 13 +++++++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/arm/shmobile.txt b/Documentation/devicetree/bindings/arm/shmobile.txt
index c4f19b2..29886ab 100644
--- a/Documentation/devicetree/bindings/arm/shmobile.txt
+++ b/Documentation/devicetree/bindings/arm/shmobile.txt
@@ -27,12 +27,16 @@ SoCs:
     compatible = "renesas,r8a7793"
   - R-Car E2 (R8A77940)
     compatible = "renesas,r8a7794"
+  - R-Car Gen2 (Generic R-Car Generation 2 SoC)
+    This applies to Generation 2 R-Car SoCs that do not require SoC-specific
+    setup code.
+    compatible = "renesas,rcar-gen2"
 
 
 Boards:
 
   - Alt
-    compatible = "renesas,alt", "renesas,r8a7794"
+    compatible = "renesas,alt", "renesas,r8a7794", "renesas,rcar-gen2"
   - APE6-EVM
     compatible = "renesas,ape6evm", "renesas,r8a73a4"
   - Atmark Techno Armadillo-800 EVA
@@ -44,7 +48,7 @@ Boards:
   - Genmai (RTK772100BC00000BR)
     compatible = "renesas,genmai", "renesas,r7s72100"
   - Gose
-    compatible = "renesas,gose", "renesas,r8a7793"
+    compatible = "renesas,gose", "renesas,r8a7793", "renesas,rcar-gen2"
   - Henninger
     compatible = "renesas,henninger", "renesas,r8a7791"
   - Koelsch (RTP0RC7791SEB00010S)
diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c
index 5d13595..0f6b48b 100644
--- a/arch/arm/mach-shmobile/setup-rcar-gen2.c
+++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c
@@ -201,3 +201,16 @@ void __init rcar_gen2_reserve(void)
 					    &rcar_gen2_dma_contiguous, true);
 #endif
 }
+
+static const char *rcar_gen2_boards_compat_dt[] __initconst = {
+	"renesas,rcar-gen2",
+	NULL,
+};
+
+DT_MACHINE_START(RCAR_GEN2_DT, "Generic R-Car Gen2 (Flattened Device Tree)")
+	.init_early	= shmobile_init_delay,
+	.init_time	= rcar_gen2_timer_init,
+	.init_late	= shmobile_init_late,
+	.reserve	= rcar_gen2_reserve,
+	.dt_compat	= rcar_gen2_boards_compat_dt,
+MACHINE_END
-- 
2.3.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-26  8:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-21 10:50 [RFC 1/3] ARM: shmobile: rcar-gen2: Add generic "renesas,rcar-gen2" machine Ulrich Hecht
2015-05-23 18:02 ` Laurent Pinchart
2015-05-25  1:17 ` Simon Horman
2015-05-26  8:01 ` Geert Uytterhoeven
2015-05-26  8:04 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox