Commit 69191fedf49671cfed7de7067f2193c227e18ad1

Authored by Nobuhiro Iwamatsu
Committed by Nobuhiro Iwamatsu
1 parent fb6f6001ed

arm: rmobile: koelsch: Add external RAM boot

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>

Showing 3 changed files with 19 additions and 4 deletions Side-by-side Diff

arch/arm/cpu/armv7/rmobile/Kconfig
... ... @@ -25,7 +25,7 @@
25 25  
26 26 config RMOBILE_EXTRAM_BOOT
27 27 bool "Enable boot from RAM"
28   - depends on TARGET_LAGER
  28 + depends on TARGET_LAGER || TARGET_KOELSCH
29 29 default n
30 30  
31 31 source "board/atmark-techno/armadillo-800eva/Kconfig"
board/renesas/koelsch/qos.c
... ... @@ -14,7 +14,7 @@
14 14 #include <asm/arch/rmobile.h>
15 15  
16 16 /* QoS version 0.240 for ES1 and version 0.334 for ES2 */
17   -
  17 +#if defined(CONFIG_RMOBILE_EXTRAM_BOOT)
18 18 enum {
19 19 DBSC3_00, DBSC3_01, DBSC3_02, DBSC3_03, DBSC3_04,
20 20 DBSC3_05, DBSC3_06, DBSC3_07, DBSC3_08, DBSC3_09,
... ... @@ -1304,4 +1304,9 @@
1304 1304 writel(0x00000001, &axi_qos->qosthres2);
1305 1305 writel(0x00000001, &axi_qos->qosqon);
1306 1306 }
  1307 +#else /* CONFIG_RMOBILE_EXTRAM_BOOT */
  1308 +void qos_init(void)
  1309 +{
  1310 +}
  1311 +#endif /* CONFIG_RMOBILE_EXTRAM_BOOT */
include/configs/koelsch.h
... ... @@ -38,7 +38,12 @@
38 38 #define CONFIG_FAT_WRITE
39 39 #define CONFIG_EXT4_WRITE
40 40  
  41 +#if defined(CONFIG_RMOBILE_EXTRAM_BOOT)
  42 +#define CONFIG_SYS_TEXT_BASE 0x70000000
  43 +#else
41 44 #define CONFIG_SYS_TEXT_BASE 0xE6304000
  45 +#endif
  46 +
42 47 #define CONFIG_SYS_THUMB_BUILD
43 48 #define CONFIG_SYS_GENERIC_BOARD
44 49  
... ... @@ -69,8 +74,13 @@
69 74 #define CONFIG_TMU_TIMER
70 75  
71 76 /* STACK */
72   -#define CONFIG_SYS_INIT_SP_ADDR 0xE633fffc
73   -#define STACK_AREA_SIZE 0xC000
  77 +#if defined(CONFIG_RMOBILE_EXTRAM_BOOT)
  78 +#define CONFIG_SYS_INIT_SP_ADDR 0x7003FFFC
  79 +#else
  80 +#define CONFIG_SYS_INIT_SP_ADDR 0xE633fffC
  81 +#endif
  82 +
  83 +#define STACK_AREA_SIZE 0xC000
74 84 #define LOW_LEVEL_MERAM_STACK \
75 85 (CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4)
76 86