1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-03-01 16:02:18 +01:00
Files
u-boot-megous/board
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
..
2021-09-04 12:26:02 -04:00
2022-02-05 13:38:38 +01:00
2021-11-07 18:36:55 +01:00
2021-09-07 16:22:30 -04:00
2022-01-10 14:01:57 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2021-10-27 16:38:26 -04:00
2021-09-04 11:42:41 -04:00
2021-09-07 16:22:30 -04:00
2021-06-17 09:40:58 +08:00
2022-01-08 11:16:03 -05:00