From: Ahmad Fatoum <a.fatoum@pengutronix.de> To: barebox@lists.infradead.org Cc: Ahmad Fatoum <a.fatoum@pengutronix.de> Subject: [PATCH 3/8] serial: amba-pl011: add $global.bootm.earlycon fixup support Date: Mon, 23 May 2022 11:25:21 +0200 [thread overview] Message-ID: <20220523092526.791716-3-a.fatoum@pengutronix.de> (raw) In-Reply-To: <20220523092526.791716-1-a.fatoum@pengutronix.de> Allow barebox compute a suitable earlycon parameter. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> --- drivers/serial/amba-pl011.c | 2 ++ drivers/serial/stm-serial.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c index 345c58e27426..b53ff6877b77 100644 --- a/drivers/serial/amba-pl011.c +++ b/drivers/serial/amba-pl011.c @@ -202,6 +202,8 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id) cdev->getc = pl011_getc; cdev->setbrg = pl011_setbaudrate; cdev->linux_console_name = "ttyAMA"; + cdev->linux_earlycon_name = "pl011"; + cdev->phys_base = uart->base; pl011_init_port(cdev); diff --git a/drivers/serial/stm-serial.c b/drivers/serial/stm-serial.c index 30aaba94f0ef..b4b2c4cc8f71 100644 --- a/drivers/serial/stm-serial.c +++ b/drivers/serial/stm-serial.c @@ -149,12 +149,14 @@ static int stm_serial_probe(struct device_d *dev) cdev->setbrg = stm_serial_setbaudrate; cdev->dev = dev; cdev->linux_console_name = "ttyAMA"; + cdev->linux_earlycon_name = "pl011"; dev->priv = priv; iores = dev_request_mem_resource(dev, 0); if (IS_ERR(iores)) return PTR_ERR(iores); priv->base = IOMEM(iores->start); + cdev->phys_base = priv->base; priv->clk = clk_get(dev, NULL); if (IS_ERR(priv->clk)) return PTR_ERR(priv->clk); -- 2.30.2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2022-05-23 10:37 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-23 9:25 [PATCH 1/8] console: add new $global.bootm.earlycon parameter Ahmad Fatoum 2022-05-23 9:25 ` [PATCH 2/8] serial: ns16550: add $global.bootm.earlycon fixup support Ahmad Fatoum 2022-05-23 9:25 ` Ahmad Fatoum [this message] 2022-05-23 9:25 ` [PATCH 4/8] serial: atmel: " Ahmad Fatoum 2022-05-23 9:25 ` [PATCH 5/8] serial: imx: " Ahmad Fatoum 2022-05-23 11:04 ` Sascha Hauer 2022-05-23 11:10 ` Ahmad Fatoum 2022-05-23 11:25 ` Sascha Hauer 2022-05-24 7:35 ` Ahmad Fatoum 2022-06-09 9:25 ` Sascha Hauer 2022-05-23 9:25 ` [PATCH 6/8] serial: litex: add linux console/earlycon " Ahmad Fatoum 2022-05-23 9:25 ` [PATCH 7/8] serial: lpuart: add $global.bootm.earlycon " Ahmad Fatoum 2022-05-23 9:25 ` [PATCH 8/8] video: efi_gop: add $global.bootm.earlycon fixup for framebuffer console Ahmad Fatoum
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=20220523092526.791716-3-a.fatoum@pengutronix.de \ --to=a.fatoum@pengutronix.de \ --cc=barebox@lists.infradead.org \ --subject='Re: [PATCH 3/8] serial: amba-pl011: add $global.bootm.earlycon fixup support' \ /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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox