mirror of
https://xff.cz/git/u-boot/
synced 2025-09-04 18:22:02 +02:00
riscv: Setup reserved-memory node for FU540
FU540 uses OF_SEPARATE instead of OF_PRIOR_STAGE. Enable OF_BOARD_FIXUP to update the DT with reserved-memory node. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -100,3 +100,18 @@ int riscv_board_reserved_mem_fixup(void *fdt)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_OF_BOARD_FIXUP
|
||||||
|
int board_fix_fdt(void *fdt)
|
||||||
|
{
|
||||||
|
int err;
|
||||||
|
|
||||||
|
err = riscv_board_reserved_mem_fixup(fdt);
|
||||||
|
if (err < 0) {
|
||||||
|
printf("failed to fixup DT for reserved memory: %d\n", err);
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@@ -9,6 +9,7 @@ CONFIG_FIT=y
|
|||||||
CONFIG_MISC_INIT_R=y
|
CONFIG_MISC_INIT_R=y
|
||||||
CONFIG_DISPLAY_CPUINFO=y
|
CONFIG_DISPLAY_CPUINFO=y
|
||||||
CONFIG_DISPLAY_BOARDINFO=y
|
CONFIG_DISPLAY_BOARDINFO=y
|
||||||
|
CONFIG_OF_BOARD_FIXUP=y
|
||||||
CONFIG_DEFAULT_DEVICE_TREE="hifive-unleashed-a00"
|
CONFIG_DEFAULT_DEVICE_TREE="hifive-unleashed-a00"
|
||||||
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||||
CONFIG_DM_MTD=y
|
CONFIG_DM_MTD=y
|
||||||
|
Reference in New Issue
Block a user