[PATCH 05/11] riscv: Enable SiFive UART support pre-relocation
Sean Anderson
seanga2 at gmail.com
Tue Dec 31 23:46:35 CET 2019
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 at 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
More information about the U-Boot
mailing list