diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-01 09:00:34 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-07 10:39:30 +0100 |
commit | 0fff6cb9bb4f269e03839ba9f41f3459b1f6df3e (patch) | |
tree | 653d5b7cc488eda49a3b01165c3808f0794e39ad /include/mach | |
parent | c7c3059ddd32053ff8c1798f0a0f51fddcac96f8 (diff) | |
download | barebox-0fff6cb9bb4f269e03839ba9f41f3459b1f6df3e.tar.gz |
ARM: i.MX: 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 i.MX specific debug_ll.h only
provides PUTC_LL() when specified.
The i.MX specific debug_ll.h also provides other functions needed
by board code regardless if the i.MX debug_ll port is enabled or
not, so include it explicitly where needed.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mach')
-rw-r--r-- | include/mach/imx/debug_ll.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mach/imx/debug_ll.h b/include/mach/imx/debug_ll.h index 33e3e3afe3..d25631d116 100644 --- a/include/mach/imx/debug_ll.h +++ b/include/mach/imx/debug_ll.h @@ -23,7 +23,7 @@ #include <serial/imx-uart.h> #include <serial/lpuart.h> -#ifdef CONFIG_DEBUG_LL +#ifdef CONFIG_DEBUG_IMX_UART #define __IMX_UART_BASE(soc, num) soc##_UART##num##_BASE_ADDR #define IMX_UART_BASE(soc, num) __IMX_UART_BASE(soc, num) |