
31 Dec
2019
31 Dec
'19
11:46 p.m.
Many other serial drivers are enabled pre-relocation to allow printing of console messages before relocating. This should also be enabled for the SiFive serial driver.
Signed-off-by: Sean Anderson seanga2@gmail.com --- drivers/serial/serial_sifive.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/serial/serial_sifive.c b/drivers/serial/serial_sifive.c index c142ccdf3d..e103d2520e 100644 --- a/drivers/serial/serial_sifive.c +++ b/drivers/serial/serial_sifive.c @@ -203,6 +203,7 @@ U_BOOT_DRIVER(serial_sifive) = { .platdata_auto_alloc_size = sizeof(struct sifive_uart_platdata), .probe = sifive_serial_probe, .ops = &sifive_serial_ops, + .flags = DM_FLAG_PRE_RELOC, };
#ifdef CONFIG_DEBUG_UART_SIFIVE
--
2.24.1