]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: rmobile: koelsch: Add external RAM boot
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Fri, 31 Oct 2014 07:16:27 +0000 (16:16 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 3 Nov 2014 23:59:20 +0000 (08:59 +0900)
If CONFIG_RMOBILE_EXTRAM_BOOT is enabled, U-Boot is booted from External RAM.
The default boot address is 0x70000000.

Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/arm/cpu/armv7/rmobile/Kconfig
board/renesas/koelsch/qos.c
include/configs/koelsch.h

index 75e38ea2ea9e66dd6156a4463ef4038fb97ecb47..082c767d3b5d71b76154af292f7232001e0bc5e6 100644 (file)
@@ -25,7 +25,7 @@ config SYS_SOC
 
 config RMOBILE_EXTRAM_BOOT
        bool "Enable boot from RAM"
-       depends on TARGET_LAGER
+       depends on TARGET_LAGER || TARGET_KOELSCH
        default n
 
 source "board/atmark-techno/armadillo-800eva/Kconfig"
index ecf3eeddd7dbf58637b0b5afc36fa56070310f90..d293e3d7fcc86acdb489f9b2bd116fb41b93b26e 100644 (file)
@@ -14,7 +14,7 @@
 #include <asm/arch/rmobile.h>
 
 /* QoS version 0.240 for ES1 and version 0.334 for ES2 */
-
+#if defined(CONFIG_RMOBILE_EXTRAM_BOOT)
 enum {
        DBSC3_00, DBSC3_01, DBSC3_02, DBSC3_03, DBSC3_04,
        DBSC3_05, DBSC3_06, DBSC3_07, DBSC3_08, DBSC3_09,
@@ -1304,3 +1304,8 @@ void qos_init(void)
        writel(0x00000001, &axi_qos->qosthres2);
        writel(0x00000001, &axi_qos->qosqon);
 }
+#else /* CONFIG_RMOBILE_EXTRAM_BOOT */
+void qos_init(void)
+{
+}
+#endif /* CONFIG_RMOBILE_EXTRAM_BOOT */
index e015e9091be2ad3a65433db8f020ea9d44c31f16..3ccadd0af739920ef18a0721e5fff5e3258d1653 100644 (file)
 #define CONFIG_FAT_WRITE
 #define CONFIG_EXT4_WRITE
 
+#if defined(CONFIG_RMOBILE_EXTRAM_BOOT)
+#define CONFIG_SYS_TEXT_BASE   0x70000000
+#else
 #define CONFIG_SYS_TEXT_BASE   0xE6304000
+#endif
+
 #define CONFIG_SYS_THUMB_BUILD
 #define CONFIG_SYS_GENERIC_BOARD
 
 #define CONFIG_TMU_TIMER
 
 /* STACK */
-#define CONFIG_SYS_INIT_SP_ADDR                0xE633fffc
-#define STACK_AREA_SIZE                                0xC000
+#if defined(CONFIG_RMOBILE_EXTRAM_BOOT)
+#define CONFIG_SYS_INIT_SP_ADDR                0x7003FFFC
+#else
+#define CONFIG_SYS_INIT_SP_ADDR                0xE633fffC
+#endif
+
+#define STACK_AREA_SIZE                        0xC000
 #define LOW_LEVEL_MERAM_STACK  \
                (CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4)