[PATCH 1/2] serial: cadence: support console= and earlycon= fixups

Gwenhael Goavec-Merou gwenj at trabucayre.com
Mon Jul 14 23:25:09 PDT 2025


Hi,

Le 14/07/2025 à 9:12 AM, Ahmad Fatoum a écrit :
> 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.fatoum at 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);
>   
Tested-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou at trabucayre.com>

Thanks

Gwen



More information about the barebox mailing list