mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] serial: 8250_omap: Add earlycon support for the AM654 UART controller
@ 2023-10-31 13:12 Ronald Wahl
  2023-11-02  9:03 ` Vignesh Raghavendra
  0 siblings, 1 reply; 2+ messages in thread
From: Ronald Wahl @ 2023-10-31 13:12 UTC (permalink / raw)
  To: linux-kernel, linux-serial
  Cc: Greg Kroah-Hartman, Peter Hurley, Nishanth Menon,
	Vignesh Raghavendra, Ronald Wahl

From: Ronald Wahl <ronald.wahl@raritan.com>

Currently there is no support for earlycon on the AM654 UART
controller. This commit adds it.

Signed-off-by: Ronald Wahl <ronald.wahl@raritan.com>
---
 drivers/tty/serial/8250/8250_early.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/8250/8250_early.c b/drivers/tty/serial/8250/8250_early.c
index 9837a27739fd..e3f482fd3de4 100644
--- a/drivers/tty/serial/8250/8250_early.c
+++ b/drivers/tty/serial/8250/8250_early.c
@@ -189,5 +189,6 @@ static int __init early_omap8250_setup(struct earlycon_device *device,
 OF_EARLYCON_DECLARE(omap8250, "ti,omap2-uart", early_omap8250_setup);
 OF_EARLYCON_DECLARE(omap8250, "ti,omap3-uart", early_omap8250_setup);
 OF_EARLYCON_DECLARE(omap8250, "ti,omap4-uart", early_omap8250_setup);
+OF_EARLYCON_DECLARE(omap8250, "ti,am654-uart", early_omap8250_setup);

 #endif
--
2.41.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] serial: 8250_omap: Add earlycon support for the AM654 UART controller
  2023-10-31 13:12 [PATCH] serial: 8250_omap: Add earlycon support for the AM654 UART controller Ronald Wahl
@ 2023-11-02  9:03 ` Vignesh Raghavendra
  0 siblings, 0 replies; 2+ messages in thread
From: Vignesh Raghavendra @ 2023-11-02  9:03 UTC (permalink / raw)
  To: Ronald Wahl, linux-kernel, linux-serial
  Cc: Greg Kroah-Hartman, Peter Hurley, Nishanth Menon, Ronald Wahl



On 31/10/23 18:42, Ronald Wahl wrote:
> From: Ronald Wahl <ronald.wahl@raritan.com>
> 
> Currently there is no support for earlycon on the AM654 UART
> controller. This commit adds it.

Something like below should also work for just an early console
functionality

earlycon=ns16550a,mmio32,0x02800000

But, I think its better to have setup mapped directly to compatible. so

Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>


> 
> Signed-off-by: Ronald Wahl <ronald.wahl@raritan.com>
> ---
>  drivers/tty/serial/8250/8250_early.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/tty/serial/8250/8250_early.c b/drivers/tty/serial/8250/8250_early.c
> index 9837a27739fd..e3f482fd3de4 100644
> --- a/drivers/tty/serial/8250/8250_early.c
> +++ b/drivers/tty/serial/8250/8250_early.c
> @@ -189,5 +189,6 @@ static int __init early_omap8250_setup(struct earlycon_device *device,
>  OF_EARLYCON_DECLARE(omap8250, "ti,omap2-uart", early_omap8250_setup);
>  OF_EARLYCON_DECLARE(omap8250, "ti,omap3-uart", early_omap8250_setup);
>  OF_EARLYCON_DECLARE(omap8250, "ti,omap4-uart", early_omap8250_setup);
> +OF_EARLYCON_DECLARE(omap8250, "ti,am654-uart", early_omap8250_setup);
> 
>  #endif
> --
> 2.41.0
> 

-- 
Regards
Vignesh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-02  9:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-31 13:12 [PATCH] serial: 8250_omap: Add earlycon support for the AM654 UART controller Ronald Wahl
2023-11-02  9:03 ` Vignesh Raghavendra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®