diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-02 12:15:58 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-03 09:19:37 +0100 |
commit | 5b8bb2f94650da66cf4510cc04afb324697dcc3e (patch) | |
tree | 6d2df3de0dab2d4cbd82e62ccfac5c05ad6e0866 /include/debug_ll.h | |
parent | 2a49488d9edb00d52981971604f05a337f76b156 (diff) | |
download | barebox-5b8bb2f94650da66cf4510cc04afb324697dcc3e.tar.gz |
ARM: drop CONFIG_HAS_ASM_DEBUG_LL
When CONFIG_HAS_ASM_DEBUG_LL is set then include/debug_ll.h includes
asm/debug_ll.h, otherwise it includes mach/debug_ll.h. Drop this option
and instead always include asm/debug_ll.h and include mach/debug_ll.h
from there if necessary. This also adds the missing asm/debug_ll.h for
architectures which previously did not have that file.
Link: https://lore.barebox.org/20230302111606.1054037-6-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/debug_ll.h')
-rw-r--r-- | include/debug_ll.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/debug_ll.h b/include/debug_ll.h index 856a157bf5..0128ab524a 100644 --- a/include/debug_ll.h +++ b/include/debug_ll.h @@ -12,18 +12,14 @@ #define __INCLUDE_DEBUG_LL_H__ #ifdef CONFIG_HAS_DEBUG_LL -#ifdef CONFIG_HAS_ASM_DEBUG_LL -#include <asm/debug_ll.h> -#else /* - * mach/debug_ll.h should implement PUTC_LL. This can be a macro or a static + * asm/debug_ll.h should implement PUTC_LL. This can be a macro or a static * inline function. Note that several SoCs expect the UART to be initialized * by a debugger or a first stage bootloader. You won't see anything without * this initialization. Depending on the PUTC_LL implementation the board might * also hang in PUTC_LL without proper initialization. */ -#include <mach/debug_ll.h> -#endif +#include <asm/debug_ll.h> #endif #if defined (CONFIG_DEBUG_LL) |