u-boot/board/emulation/qemu-riscv
Anup Patel ef19131b80 riscv: qemu: Implement is_flash_available() for MTD NOR
Currently, if MTD NOR is enabled then U-Boot tries to issue flash
commands even when CFI flash DT node is not present. This causes
access fault on RISC-V emulators or ISS which do not emulate CFI
flash. To handle this issue, we implement is_flash_available() for
qemu-riscv board which will return 1 only if CFI flash DT node is
present.

Fixes: d248627f9d ("riscv: qemu: Enable MTD NOR flash support")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
2022-02-10 11:18:13 +08:00
..
Kconfig riscv: qemu: Enable HTIF console support 2022-02-10 11:18:12 +08:00
MAINTAINERS riscv: qemu: add SPL configuration 2019-08-26 16:07:42 +08:00
Makefile riscv: Add QEMU virt board support 2018-10-03 17:48:37 +08:00
qemu-riscv.c riscv: qemu: Implement is_flash_available() for MTD NOR 2022-02-10 11:18:13 +08:00