diff options
author | Anup Patel | 2022-01-27 11:41:09 +0530 |
---|---|---|
committer | Leo Yu-Chi Liang | 2022-02-10 11:18:13 +0800 |
commit | ef19131b800806a129df5468aef1d2c5de9b0a89 (patch) | |
tree | 2c0a34eaa1be25dfad02ca9e7c6d169441c8fd52 /doc/board/emulation | |
parent | be7ce1a81803905c0f81281cafc6fe5b54241d33 (diff) |
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: d248627f9d42 ("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>
Diffstat (limited to 'doc/board/emulation')
0 files changed, 0 insertions, 0 deletions