]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: Enable CONFIG_OF_BOARD_FIXUP by default for OF_SEPARATE
authorBin Meng <bin.meng@windriver.com>
Fri, 26 Jun 2020 01:16:08 +0000 (18:16 -0700)
committerAndes <uboot@andestech.com>
Thu, 2 Jul 2020 02:03:09 +0000 (10:03 +0800)
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 <bin.meng@windriver.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/Kconfig
configs/sifive_fu540_defconfig

index d9854f5283986ff031fc18b67ad6621032227d06..ff8a9f8ddce464b8b50214fcc0af985af7a030b1 100644 (file)
@@ -273,4 +273,7 @@ config STACK_SIZE_SHIFT
        int
        default 14
 
+config OF_BOARD_FIXUP
+       default y if OF_SEPARATE
+
 endmenu
index 8d412f8d6ae28dafffd07da469631c5dc813e6a4..32347c230b5c4e5a6b3ac38087abf97d3ca56359 100644 (file)
@@ -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