diff options
| author | Bin Meng <[email protected]> | 2020-06-25 18:16:08 -0700 |
|---|---|---|
| committer | Andes <[email protected]> | 2020-07-02 10:03:09 +0800 |
| commit | 1c17e55594a394ced7de88d91be294eaf8c564c1 (patch) | |
| tree | 80ea890789491f22954810eae26b363423720213 | |
| parent | a8492e25ac717b521e9cca2044282d3ac7025acb (diff) | |
riscv: Enable CONFIG_OF_BOARD_FIXUP by default for OF_SEPARATE
Starting from OpenSBI v0.7, the SBI firmware inserts/fixes up the
reserved memory node for PMP protected memory regions. All RISC-V
boards need to copy the reserved memory node from the device tree
provided by the firmware to the device tree used by U-Boot.
Turn on CONFIG_OF_BOARD_FIXUP by default for OF_SEPARATE.
Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Reviewed-by: Rick Chen <[email protected]>
| -rw-r--r-- | arch/riscv/Kconfig | 3 | ||||
| -rw-r--r-- | configs/sifive_fu540_defconfig | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index d9854f52839..ff8a9f8ddce 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -273,4 +273,7 @@ config STACK_SIZE_SHIFT int default 14 +config OF_BOARD_FIXUP + default y if OF_SEPARATE + endmenu diff --git a/configs/sifive_fu540_defconfig b/configs/sifive_fu540_defconfig index 8d412f8d6ae..32347c230b5 100644 --- a/configs/sifive_fu540_defconfig +++ b/configs/sifive_fu540_defconfig @@ -16,7 +16,6 @@ CONFIG_DISPLAY_CPUINFO=y CONFIG_DISPLAY_BOARDINFO=y CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_YMODEM_SUPPORT=y -CONFIG_OF_BOARD_FIXUP=y CONFIG_DEFAULT_DEVICE_TREE="hifive-unleashed-a00" CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_SPL_CLK=y |
