mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 05:33:36 +00:00
spl: riscv: opensbi: fix check of PAYLOAD_ARGS_ADDR
When Falcon Mode is enabled on RISC-V, use CONFIG_VAL
to check PAYLOAD_ARGS_ADDR, not CONFIG_IS_ENABLED.
Fixes: 10c4ab898c
("spl: riscv: falcon: move fdt blob to specified address")
Signed-off-by: Randolph <randolph@andestech.com>
Tested-by: Leo Yu-Chi Liang <ycliang@andestech.com>
This commit is contained in:
parent
dde373bde3
commit
0cfe1bc6ed
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ void __noreturn spl_invoke_opensbi(struct spl_image_info *spl_image)
|
|||
* Moving DTB in front of the kernel can avoid the error.
|
||||
*/
|
||||
#if CONFIG_IS_ENABLED(LOAD_FIT_OPENSBI_OS_BOOT) && \
|
||||
CONFIG_IS_ENABLED(PAYLOAD_ARGS_ADDR)
|
||||
CONFIG_VAL(PAYLOAD_ARGS_ADDR)
|
||||
memcpy((void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR, spl_image->fdt_addr,
|
||||
fdt_totalsize(spl_image->fdt_addr));
|
||||
spl_image->fdt_addr = map_sysmem(CONFIG_SPL_PAYLOAD_ARGS_ADDR, 0);
|
||||
|
|
Loading…
Reference in a new issue