Commit c9b59bf795804a25b9654e729a491363ef9e6a54
Committed by
Nobuhiro Iwamatsu
1 parent
69191fedf4
Exists in
v2017.01-smarct4x
and in
37 other branches
arm: rmobile: alt: 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 15 additions and 1 deletions Side-by-side Diff
arch/arm/cpu/armv7/rmobile/Kconfig
board/renesas/alt/qos.c
... | ... | @@ -13,6 +13,7 @@ |
13 | 13 | #include <asm/io.h> |
14 | 14 | #include <asm/arch/rmobile.h> |
15 | 15 | |
16 | +#if defined(CONFIG_RMOBILE_EXTRAM_BOOT) | |
16 | 17 | /* QoS version 0.11 */ |
17 | 18 | |
18 | 19 | enum { |
... | ... | @@ -942,4 +943,9 @@ |
942 | 943 | writel(0x00000001, &axi_qos->qosthres2); |
943 | 944 | writel(0x00000001, &axi_qos->qosqon); |
944 | 945 | } |
946 | +#else /* CONFIG_RMOBILE_EXTRAM_BOOT */ | |
947 | +void qos_init(void) | |
948 | +{ | |
949 | +} | |
950 | +#endif /* CONFIG_RMOBILE_EXTRAM_BOOT */ |
include/configs/alt.h
... | ... | @@ -34,7 +34,11 @@ |
34 | 34 | #define CONFIG_CMD_SF |
35 | 35 | #define CONFIG_CMD_SPI |
36 | 36 | |
37 | +#if defined(CONFIG_RMOBILE_EXTRAM_BOOT) | |
38 | +#define CONFIG_SYS_TEXT_BASE 0x70000000 | |
39 | +#else | |
37 | 40 | #define CONFIG_SYS_TEXT_BASE 0xE6304000 |
41 | +#endif | |
38 | 42 | #define CONFIG_SYS_THUMB_BUILD |
39 | 43 | #define CONFIG_SYS_GENERIC_BOARD |
40 | 44 | |
41 | 45 | |
... | ... | @@ -59,7 +63,11 @@ |
59 | 63 | #define CONFIG_BOARD_EARLY_INIT_F |
60 | 64 | #define CONFIG_TMU_TIMER |
61 | 65 | |
66 | +#if defined(CONFIG_RMOBILE_EXTRAM_BOOT) | |
67 | +#define CONFIG_SYS_INIT_SP_ADDR 0x7003FFFC | |
68 | +#else | |
62 | 69 | #define CONFIG_SYS_INIT_SP_ADDR 0xE633FFFC |
70 | +#endif | |
63 | 71 | #define STACK_AREA_SIZE 0xC000 |
64 | 72 | #define LOW_LEVEL_MERAM_STACK \ |
65 | 73 | (CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4) |