tty: serial: meson: Add a earlycon for the S4 SoC
Subsystems (2)
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.
Signed-off-by Lucas Tanure <[email protected]>
--- drivers/tty/serial/meson_uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
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
Signature · 7 lines
2.42.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 14 lines · Lucas Tanure
The new Amlogic S4 SoC does not have a always-on uart, so add
OF_EARLYCON_DECLAREfor it.
Amlogic T7 will use this as fallback.Signed-off-by Lucas Tanure <[email protected]>--- drivers/tty/serial/meson_uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/tty/serial/meson_uart.c +0
-0
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
Reviewed-by Neil Armstrong <[email protected]>