]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial: s5p: Allow independent selection
authorMark Kettenis <kettenis@openbsd.org>
Fri, 12 Feb 2021 22:22:18 +0000 (23:22 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 23 Feb 2021 06:43:21 +0000 (15:43 +0900)
Currently support for the Samsung serial port driver is part
of CONFIG_S5P which controls selection of several drivers for
the S5P family.  Give it its own config option such that we
can use it on other SoCs as well.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Patrick Wildt <patrick@blueri.se>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/serial/Kconfig
drivers/serial/Makefile

index 79ad0a1b3435da7b6155b15f87d31f6b780b15d4..24413d14f9cece1b40cecff54a8c4ad4db4a67d0 100644 (file)
@@ -722,6 +722,13 @@ config ROCKCHIP_SERIAL
          This uses the ns16550 driver, converting the platdata from of-platdata
          to the ns16550 format.
 
+config S5P_SERIAL
+       bool "Support for Samsung S5P UART"
+       depends on ARCH_EXYNOS || ARCH_S5PC1XX
+       default y
+       help
+         Select this to enable Samsung S5P UART support.
+
 config SANDBOX_SERIAL
        bool "Sandbox UART support"
        depends on SANDBOX
index 0c3810f5d5c779e58d35f2c8afc8bda4735d40f7..92bcb30b850953a834258c3eeae696b6c338567a 100644 (file)
@@ -41,7 +41,7 @@ obj-$(CONFIG_EFI_APP) += serial_efi.o
 obj-$(CONFIG_LPC32XX_HSUART) += lpc32xx_hsuart.o
 obj-$(CONFIG_MCFUART) += serial_mcf.o
 obj-$(CONFIG_SYS_NS16550) += ns16550.o
-obj-$(CONFIG_S5P) += serial_s5p.o
+obj-$(CONFIG_S5P_SERIAL) += serial_s5p.o
 obj-$(CONFIG_MXC_UART) += serial_mxc.o
 obj-$(CONFIG_PXA_SERIAL) += serial_pxa.o
 obj-$(CONFIG_MESON_SERIAL) += serial_meson.o