diff options
author | Samuel Holland <samuel@sholland.org> | 2021-09-12 11:26:45 -0500 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2021-10-07 16:08:23 +0800 |
commit | dd573b6b213e859b9d705aabee3ba09e7e7012d2 (patch) | |
tree | 8505651a351e1ffd112d169519837ea575935294 /common/image.c | |
parent | 0d625f400bcab5361484a5446aa54133fd6fe213 (diff) | |
download | u-boot-dd573b6b213e859b9d705aabee3ba09e7e7012d2.tar.gz |
riscv: image: Use the first DRAM bank for bootm_low
bootm_low is used as a base address is used to allocate space for the
FDT blob, initrd, cmdline, etc. when booting Linux. Set the default
value for RISC-V to the start of the first DRAM bank, so platforms can
get their DRAM layout from the device tree, and do not need to define
CONFIG_SYS_SDRAM_BASE.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'common/image.c')
-rw-r--r-- | common/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image.c b/common/image.c index e199d61a4c3..8ac57081fdd 100644 --- a/common/image.c +++ b/common/image.c @@ -684,7 +684,7 @@ ulong env_get_bootm_low(void) #if defined(CONFIG_SYS_SDRAM_BASE) return CONFIG_SYS_SDRAM_BASE; -#elif defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE) +#elif defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE) || defined(CONFIG_RISCV) return gd->bd->bi_dram[0].start; #else return 0; |