forked from Mirrors/opensbi
platform: generic: Initialize console before other drivers
Initialize serial drivers first, so messages printed by other drivers do not need to use the early console buffer. Suggested-by: Anup Patel <anup@brainfault.org> Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
f069301654
commit
0c5dc12d73
@@ -250,17 +250,17 @@ static int generic_early_init(bool cold_boot)
|
||||
int rc;
|
||||
|
||||
if (cold_boot) {
|
||||
fdt_reset_init(fdt);
|
||||
fdt_suspend_init(fdt);
|
||||
fdt_hsm_init(fdt);
|
||||
fdt_cppc_init(fdt);
|
||||
|
||||
if (semihosting_enabled())
|
||||
rc = semihosting_init();
|
||||
else
|
||||
rc = fdt_serial_init(fdt);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
fdt_cppc_init(fdt);
|
||||
fdt_hsm_init(fdt);
|
||||
fdt_reset_init(fdt);
|
||||
fdt_suspend_init(fdt);
|
||||
}
|
||||
|
||||
if (!generic_plat || !generic_plat->early_init)
|
||||
|
Reference in New Issue
Block a user