Skip to contentSkip to conversation

serial: s5p: Allow independent selection

PATCH New Mark Kettenis 3 participants 3 messages Feb 12, 2021 – Feb 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 serial: s5p: Allow independent selection

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.

---

v2: fix Kconfig

 drivers/serial/Kconfig  | 7 +++++++
 drivers/serial/Makefile | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
drivers/serial/Kconfig +7 -0
index 9db4cae1df..2ada150526 100644
@@ -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
drivers/serial/Makefile +1 -1
index 0c3810f5d5..92bcb30b85 100644
@@ -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
Signature · 1 line
2.30.0
#1 lore raw

PATCH v2 1/1 serial: s5p: Allow independent selection

Am Fri, Feb 12, 2021 at 11:22:18PM +0100 schrieb Mark Kettenis:

Quoted 6 lines

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.

Quoted 42 lines

---

v2: fix Kconfig

 drivers/serial/Kconfig  | 7 +++++++
 drivers/serial/Makefile | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
drivers/serial/Kconfig +7 -0
index 9db4cae1df..2ada150526 100644
@@ -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
drivers/serial/Makefile +1 -1
index 0c3810f5d5..92bcb30b85 100644
@@ -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
Signature · 1 line
2.30.0
#2 lore raw

PATCH v2 1/1 serial: s5p: Allow independent selection

Hi,

Quoted 45 lines · Patrick Wildt

Am Fri, Feb 12, 2021 at 11:22:18PM +0100 schrieb Mark Kettenis:

Quoted 6 lines

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.

Quoted 13 lines

---

v2: fix Kconfig

 drivers/serial/Kconfig  | 7 +++++++
 drivers/serial/Makefile | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
drivers/serial/Kconfig +0 -0
index 9db4cae1df..2ada150526 100644

drivers/serial/Kconfig config ROCKCHIP_SERIAL · line 722

Quoted 1 line
drivers/serial/Kconfig +0 -0
@@ -722,6 +722,13 @@ config ROCKCHIP_SERIAL
        This uses the ns16550 driver, converting the platdata from

of-platdata

Quoted 20 lines
drivers/serial/Kconfig +7 -0
        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
drivers/serial/Makefile +0 -0
index 0c3810f5d5..92bcb30b85 100644
@@ -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
Quoted 9 lines
Quoted 8 lines
drivers/serial/Makefile +1 -2
-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
--

2.30.0

Applied to u-boot-samsung.

Signature · 2 lines
Thanks,
Minkyu Kang.