All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] serial: s5p: Allow independent selection
@ 2021-02-11 23:34 Mark Kettenis
  2021-02-11 23:51 ` Mark Kettenis
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Kettenis @ 2021-02-11 23:34 UTC (permalink / raw)
  To: u-boot

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>
---
 drivers/serial/Kconfig  | 7 +++++++
 drivers/serial/Makefile | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 9db4cae1df..5335f32f99 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -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_APPLE || _ARCH_EXYNOS || ARCH_S5PC1XX
+	default y if S5P
+	help
+	  Select this to enable Samsung S5P UART support.
+
 config SANDBOX_SERIAL
 	bool "Sandbox UART support"
 	depends on SANDBOX
diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile
index 0c3810f5d5..92bcb30b85 100644
--- a/drivers/serial/Makefile
+++ b/drivers/serial/Makefile
@@ -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
-- 
2.30.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] serial: s5p: Allow independent selection
  2021-02-11 23:34 [PATCH] serial: s5p: Allow independent selection Mark Kettenis
@ 2021-02-11 23:51 ` Mark Kettenis
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Kettenis @ 2021-02-11 23:51 UTC (permalink / raw)
  To: u-boot

Bleah.  Sent this out to quickly.  Will do a v2 when I've properly
tested building an actual S5P family target.

> From: Mark Kettenis <kettenis@openbsd.org>
> Date: Fri, 12 Feb 2021 00:34:49 +0100
> 
> 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>
> ---
>  drivers/serial/Kconfig  | 7 +++++++
>  drivers/serial/Makefile | 2 +-
>  2 files changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
> index 9db4cae1df..5335f32f99 100644
> --- a/drivers/serial/Kconfig
> +++ b/drivers/serial/Kconfig
> @@ -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_APPLE || _ARCH_EXYNOS || ARCH_S5PC1XX
> +	default y if S5P
> +	help
> +	  Select this to enable Samsung S5P UART support.
> +
>  config SANDBOX_SERIAL
>  	bool "Sandbox UART support"
>  	depends on SANDBOX
> diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile
> index 0c3810f5d5..92bcb30b85 100644
> --- a/drivers/serial/Makefile
> +++ b/drivers/serial/Makefile
> @@ -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
> -- 
> 2.30.0
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-11 23:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-11 23:34 [PATCH] serial: s5p: Allow independent selection Mark Kettenis
2021-02-11 23:51 ` Mark Kettenis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.