mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Gwenhael Goavec-Merou <gwenj@trabucayre.com>
To: Ahmad Fatoum <a.fatoum@barebox.org>, barebox@lists.infradead.org
Cc: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Subject: Re: [PATCH 1/2] serial: cadence: support console= and earlycon= fixups
Date: Tue, 15 Jul 2025 08:25:09 +0200	[thread overview]
Message-ID: <6e2dbe14-3699-483b-9ef5-d1fcf2565d6a@trabucayre.com> (raw)
In-Reply-To: <20250714071249.2428110-1-a.fatoum@barebox.org>

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@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@trabucayre.com>

Thanks

Gwen



      parent reply	other threads:[~2025-07-15  6:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-14  7:12 Ahmad Fatoum
2025-07-14  7:12 ` [PATCH 2/2] ARM: zynq: drop the board-specific environment Ahmad Fatoum
2025-07-15  6:25   ` Gwenhael Goavec-Merou
2025-07-15  6:25 ` Gwenhael Goavec-Merou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6e2dbe14-3699-483b-9ef5-d1fcf2565d6a@trabucayre.com \
    --to=gwenj@trabucayre.com \
    --cc=a.fatoum@barebox.org \
    --cc=barebox@lists.infradead.org \
    --cc=gwenhael.goavec-merou@trabucayre.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox