Skip to contentSkip to conversation

tty: serial: meson: Add a earlycon for the S4 SoC

PATCH In review Lucas Tanure 2 participants 2 messages Oct 9, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tty: serial: meson: Add a earlycon for the S4 SoC

The new Amlogic S4 SoC does not have a always-on uart, so add OF_EARLYCON_DECLARE for it.
Amlogic T7 will use this as fallback.

---
 drivers/tty/serial/meson_uart.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/serial/meson_uart.c +2 -2
index 45cc23e9e399..de298bf75d9b 100644
@@ -646,8 +646,8 @@ meson_serial_early_console_setup(struct earlycon_device *device, const char *opt
 	return 0;
 }
 
-OF_EARLYCON_DECLARE(meson, "amlogic,meson-ao-uart",
-		    meson_serial_early_console_setup);
+OF_EARLYCON_DECLARE(meson, "amlogic,meson-ao-uart", meson_serial_early_console_setup);
+OF_EARLYCON_DECLARE(meson, "amlogic,meson-s4-uart", meson_serial_early_console_setup);
 
 #define MESON_SERIAL_CONSOLE_PTR(_devname) (&meson_serial_console_##_devname)
 #else
Signature · 7 lines
2.42.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 14 lines · Lucas Tanure

The new Amlogic S4 SoC does not have a always-on uart, so add OF_EARLYCON_DECLARE for it.
Amlogic T7 will use this as fallback.

---
  drivers/tty/serial/meson_uart.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/serial/meson_uart.c +0 -0
index 45cc23e9e399..de298bf75d9b 100644

drivers/tty/serial/meson_uart.c meson_serial_early_console_setup(struct earlycon_device *device, const char *opt · line 653

Quoted 10 lines
drivers/tty/serial/meson_uart.c +2 -2
@@ -646,8 +646,8 @@ meson_serial_early_console_setup(struct earlycon_device *device, const char *opt
  	return 0;
  }
 
-OF_EARLYCON_DECLARE(meson, "amlogic,meson-ao-uart",
-		    meson_serial_early_console_setup);
+OF_EARLYCON_DECLARE(meson, "amlogic,meson-ao-uart", meson_serial_early_console_setup);
+OF_EARLYCON_DECLARE(meson, "amlogic,meson-s4-uart", meson_serial_early_console_setup);
 
  #define MESON_SERIAL_CONSOLE_PTR(_devname) (&meson_serial_console_##_devname)
  #else