fix bug for booting tp without serial

This commit is contained in:
pbw
2024-09-07 16:11:35 +08:00
committed by xingxg2022
parent b34f366831
commit 748244a84b

View File

@@ -230,7 +230,11 @@ static int generic_early_init(bool cold_boot)
rc = semihosting_init();
else
rc = fdt_serial_init();
if (rc)
/* console is not a necessary device for tp scalar*/
if (rc == SBI_ENODEV)
return 0;
else if (rc)
return rc;
}