If we tell the serial driver core about the names of the Linux console and earlycon driver, barebox can fix up the console= and earlycon= arguments without having to hardcode Linux boot arguments.
Signed-off-by: Ahmad Fatoum <a.fat...@barebox.org> --- drivers/serial/serial_cadence.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/serial/serial_cadence.c b/drivers/serial/serial_cadence.c index bda3269106c7..52b488e80f0a 100644 --- a/drivers/serial/serial_cadence.c +++ b/drivers/serial/serial_cadence.c @@ -212,6 +212,9 @@ static int cadence_serial_probe(struct device *dev) cdev->getc = cadence_serial_getc; cdev->flush = cadence_serial_flush; cdev->setbrg = priv->clk ? cadence_serial_setbaudrate : NULL; + cdev->linux_console_name = "ttyPS"; + cdev->linux_earlycon_name = "cdns"; + cdev->phys_base = priv->regs; cadence_serial_init_port(cdev); -- 2.39.5