bootm: Add RISC-V support in booti_is_supported()
RISC-V uses a similar linux 'Image' format to ARM64, so add support for it in bootm_load_os() Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -666,7 +666,7 @@ static bool booti_is_supported(struct image_info *os)
|
||||
if (!IS_ENABLED(CONFIG_CMD_BOOTI) || os->os != IH_OS_LINUX)
|
||||
return false;
|
||||
|
||||
return os->arch == IH_ARCH_ARM64;
|
||||
return os->arch == IH_ARCH_ARM64 || os->arch == IH_ARCH_RISCV;
|
||||
}
|
||||
|
||||
static int bootm_load_os(struct bootm_headers *images, int boot_progress)
|
||||
|
||||
Reference in New Issue
Block a user