u-boot/board/emulation
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
..
common qemu: common: Fix build with update capsule 2021-11-29 11:15:37 -05:00
qemu-arm sandbox: Remove OF_HOSTFILE 2021-10-27 16:38:26 -04:00
qemu-ppce500 doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
qemu-riscv riscv: qemu: Implement is_flash_available() for MTD NOR 2022-02-10 11:18:13 +08:00
qemu-x86 x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
Kconfig SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00