]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: s5p4418: dm_serial: switch to DM_SERIAL
authorStefan Bosch <stefan_b@posteo.net>
Sun, 18 Dec 2022 12:25:33 +0000 (12:25 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 2 Jan 2023 21:06:08 +0000 (16:06 -0500)
Switch the S5P4418-SOC and therefore the s5p4418_nanopi2 board to
DM_SERIAL.

Signed-off-by: Stefan Bosch <stefan_b@posteo.net>
arch/arm/mach-nexell/Kconfig
drivers/serial/Kconfig
drivers/serial/Makefile

index 86a23986373291002a14bb9cb7ed638409f75bc0..16324e15206f84ea938edbd65837a86e4fd72307 100644 (file)
@@ -6,8 +6,8 @@ config ARCH_S5P4418
        select OF_CONTROL
        select OF_SEPARATE
        select NX_GPIO
-       select PL011_SERIAL
-       select PL011_SERIAL_FLUSH_ON_INIT
+       select DM_SERIAL
+       select PL01X_SERIAL
        help
          Enable support for Nexell S5P4418 SoC.
 
index 14b0febd1a502adfea9b35224333a189705f25bf..bb5083201b38b07c715bf4092760628346a1f809 100644 (file)
@@ -827,6 +827,15 @@ config S5P_SERIAL
        help
          Select this to enable Samsung S5P UART support.
 
+config S5P4418_PL011_SERIAL
+       bool "Extended PL011 driver for S5P4418"
+       depends on DM_SERIAL && PL01X_SERIAL && ARCH_NEXELL
+       default y
+       help
+         Select this to enable support of the PL011 UARTs in the S5P4418 SOC.
+         With this driver the UART-clocks are set to the appropriate rate
+         (if not 'skip-init').
+
 config SANDBOX_SERIAL
        bool "Sandbox UART support"
        depends on SANDBOX
index 37d3f82dbd871eee745c08a5c1634f1cd0ee2f59..01fef3f323b683f1f52f0d23be7c8a69b6adceef 100644 (file)
@@ -59,6 +59,7 @@ obj-$(CONFIG_MT7620_SERIAL) += serial_mt7620.o
 obj-$(CONFIG_HTIF_CONSOLE) += serial_htif.o
 obj-$(CONFIG_SIFIVE_SERIAL) += serial_sifive.o
 obj-$(CONFIG_XEN_SERIAL) += serial_xen.o
+obj-$(CONFIG_S5P4418_PL011_SERIAL) += serial_s5p4418_pl011.o
 
 ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_USB_TTY) += usbtty.o