u-boot/board/sifive/unmatched
Bin Meng f77549fe74 riscv: sifive: Fix OF_BOARD boot failure
When using QEMU to have a quick test of booting U-Boot S-mode payload
directly without the needs of preparing the SPI flash or SD card images
for SiFive Unleashed board, as per the instructions [1], it currently
does not boot any more.

This was caused by the OF_PRIOR_STAGE removal, as gd->fdt_blob no longer
points to a valid DTB. OF_BOARD is supposed to replace OF_PRIOR_STAGE,
hence we need to add the OF_BOARD logic in board_fdt_blob_setup().

[1] https://qemu.readthedocs.io/en/latest/system/riscv/sifive_u.html#running-u-boot

Fixes: 2e8d2f8843 ("riscv: Remove OF_PRIOR_STAGE from RISC-V boards")
Fixes: d6f8ab30a2 ("treewide: Remove OF_PRIOR_STAGE")
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-01-07 09:30:44 -05:00
..
hifive-platform-i2c-eeprom.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
Kconfig riscv: Enable SPI flash env for SiFive Unmatched. 2021-12-02 16:43:56 +08:00
MAINTAINERS
Makefile board: sifive: compile stuff only related to SPL in SPL build 2021-08-17 19:28:37 +08:00
spl.c riscv: Support booting SiFive Unmatched from SPI. 2021-12-02 16:43:56 +08:00
unmatched.c riscv: sifive: Fix OF_BOARD boot failure 2022-01-07 09:30:44 -05:00