u-boot/arch/riscv
Sean Anderson 32cef69da0 riscv: Only enable OF_BOARD_FIXUP for S-Mode
It is unsafe to enable OF_BOARD_FIXUP only based on OF_SEPARATE.
OF_SEPARATE may indicate that the user wishes U-Boot to use a different
device tree than one obtained via OF_PRIOR_STAGE. However, OF_SEPARATE may
also indicate that the device tree which would be obtained via
OF_PRIOR_STAGE is invalid, nonexistant, or otherwise unusable. In this
latter case, enabling OF_BOARD_FIXUP will result in corruption of the
device tree. To remedy this, only enable OF_BOARD_FIXUP if U-Boot is
configured for S-Mode.

Fixes: 1c17e55594
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Leo Liang <ycliang@andestech.com>
2020-10-26 09:27:19 +08:00
..
cpu riscv: Add some comments to start.S 2020-09-30 08:54:52 +08:00
dts riscv: add DT binding for BOOT button on Maix board 2020-10-08 11:42:36 -04:00
include/asm riscv: Use a valid bit to ignore already-pending IPIs 2020-09-30 08:54:52 +08:00
lib timer: Return count from timer_ops.get_count 2020-10-22 09:54:53 -04:00
config.mk kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
Kconfig riscv: Only enable OF_BOARD_FIXUP for S-Mode 2020-10-26 09:27:19 +08:00
Makefile riscv: add Kconfig entries for the code model 2018-12-18 09:56:26 +08:00