From c041311a5f64ac5222066cf6615cead91695c91c Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 1 Mar 2023 10:19:49 +0100 Subject: ARM: omap: Only provide PUTC_LL() when activated With multi-arch support we must make sure we provide exactly one PUTC_LL() function as indicated by the "Kernel low-level debugging port" Kconfig choice. Make sure that the omap specific debug_ll.h only provides PUTC_LL() when specified. The omap specific debug_ll.h also provides other functions needed by board code regardless if the omap debug_ll port is enabled or not, so include it explicitly where needed. Signed-off-by: Sascha Hauer --- common/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common') diff --git a/common/Kconfig b/common/Kconfig index 25f78cca46..eeb33f3042 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -1255,6 +1255,9 @@ config DEBUG_IMX_UART config DEBUG_ROCKCHIP_UART bool +config DEBUG_OMAP_UART + bool + choice prompt "Kernel low-level debugging port" depends on DEBUG_LL @@ -1365,6 +1368,7 @@ config DEBUG_VF610_UART config DEBUG_OMAP3_UART bool "OMAP3 Debug UART" depends on ARCH_OMAP3 + select DEBUG_OMAP_UART help Say Y here if you want kernel low-level debugging support on OMAP3. @@ -1372,6 +1376,7 @@ config DEBUG_OMAP3_UART config DEBUG_OMAP4_UART bool "OMAP4 Debug UART" depends on ARCH_OMAP4 + select DEBUG_OMAP_UART help Say Y here if you want kernel low-level debugging support on OMAP4. @@ -1379,6 +1384,7 @@ config DEBUG_OMAP4_UART config DEBUG_AM33XX_UART bool "AM33XX Debug UART" depends on ARCH_AM33XX + select DEBUG_OMAP_UART help Say Y here if you want kernel low-level debugging support on AM33XX. -- cgit v1.2.1