diff mbox

[v3,04/09] ARM: shmobile: r8a7793 boot address update

Message ID 20150917063319.26016.37729.sendpatchset@little-apple (mailing list archive)
State RFC
Delegated to: Simon Horman
Headers show

Commit Message

Magnus Damm Sept. 17, 2015, 6:33 a.m. UTC
From: Magnus Damm <damm+renesas@opensource.se>

Extend the R-Car Gen2 PM code to include r8a7793 boot address
configuration information. r8a7793 boots from ICRAM1.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 Changes from V2:
 - New patch

 arch/arm/mach-shmobile/pm-rcar-gen2.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- 0001/arch/arm/mach-shmobile/pm-rcar-gen2.c
+++ work/arch/arm/mach-shmobile/pm-rcar-gen2.c	2015-09-16 22:08:12.610513000 +0900
@@ -28,6 +28,7 @@ 
 /* On-chip RAM */
 #define MERAM		0xe8080000
 #define RAM		0xe6300000
+#define ICRAM1		0xe63c0000
 
 /* SYSC */
 #define SYSCIER 0x0c
@@ -78,10 +79,12 @@  void __init rcar_gen2_pm_init(void)
 	if (of_machine_is_compatible("renesas,r8a7790")) {
 		boot_vector_addr = MERAM;
 		syscier = 0x013111ef;
-
 	} else if (of_machine_is_compatible("renesas,r8a7791")) {
 		boot_vector_addr = RAM;
 		syscier = 0x00111003;
+	} else if (of_machine_is_compatible("renesas,r8a7793")) {
+		boot_vector_addr = ICRAM1;
+		syscier = 0x00111003;
 	}
 
 	/* RAM for jump stub, because BAR requires 256KB aligned address */