riscv: image: Use the first DRAM bank for bootm_low
authorSamuel Holland <samuel@sholland.org>
Sun, 12 Sep 2021 16:26:45 +0000 (11:26 -0500)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 7 Oct 2021 08:08:23 +0000 (16:08 +0800)
commitdd573b6b213e859b9d705aabee3ba09e7e7012d2
tree8505651a351e1ffd112d169519837ea575935294
parent0d625f400bcab5361484a5446aa54133fd6fe213
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>
common/image.c