[PATCH v2 3/4] riscv: qemu: Implement is_flash_available() for MTD NOR
Bin Meng
bmeng.cn at gmail.com
Fri Jan 28 08:31:05 CET 2022
On Thu, Jan 27, 2022 at 2:11 PM Anup Patel <apatel at ventanamicro.com> wrote:
>
> 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 at ventanamicro.com>
> Reviewed-by: Rick Chen <rick at andestech.com>
> ---
> board/emulation/qemu-riscv/qemu-riscv.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Tested-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list