mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-15 19:51:37 +00:00
riscv: ae350: Use #if defined instead of CONFIG_IS_ENABLED
According to ./include/linux/kconfig.h,
CONFIG_IS_ENABLED(OF_BOARD) expands to 0
when CONFIG_SPL_BUILD is defined because
there is no CONFIG_SPL_OF_BOARD.
Use #if defined instead.
Fixes: 2e8d2f8843
("riscv: Remove OF_PRIOR_STAGE from RISC-V boards")
Signed-off-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
41635cca6e
commit
5f888ab951
1 changed files with 2 additions and 2 deletions
|
@ -57,9 +57,9 @@ ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info)
|
|||
void *board_fdt_blob_setup(int *err)
|
||||
{
|
||||
*err = 0;
|
||||
#if CONFIG_IS_ENABLED(OF_BOARD)
|
||||
#if defined(CONFIG_OF_BOARD)
|
||||
return (void *)(ulong)gd->arch.firmware_fdt_addr;
|
||||
#elif CONFIG_IS_ENABLED(OF_SEPARATE)
|
||||
#elif defined(CONFIG_OF_SEPARATE)
|
||||
return (void *)CONFIG_SYS_FDT_BASE;
|
||||
#else
|
||||
*err = -EINVAL;
|
||||
|
|
Loading…
Add table
Reference in a new issue