summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-04-27 22:23:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-05-03 13:59:28 +0200
commit569042e154b7d211aea82c884607ee568bcd4d3d (patch)
treeb45f992bbf3d387a481a3fdb1ff9c56d06cdd195
parent786da1e50a6dab25c446f05f58d38bb897d9156c (diff)
downloadbarebox-569042e154b7d211aea82c884607ee568bcd4d3d.tar.gz
barebox-569042e154b7d211aea82c884607ee568bcd4d3d.tar.xz
debug_ll: support <asm/debug_ll.h> to get rid of mach directories
Linux support has no arch/riscv/mach-* directories. If we can get rid of them, we could multi-image build all images at once. Only thing holding us back is <mach/debug_ll.h>. Add <asm/debug_ll.h> as alternative. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210427202309.32077-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/Kconfig4
-rw-r--r--include/debug_ll.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index bddf802d3b..b10fb45b72 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -1462,6 +1462,10 @@ endmenu
config HAS_DEBUG_LL
bool
+config HAS_ASM_DEBUG_LL
+ bool
+ select HAS_DEBUG_LL
+
config DDR_SPD
bool
select CRC_ITU_T
diff --git a/include/debug_ll.h b/include/debug_ll.h
index 5bd1afe6ac..735033b314 100644
--- a/include/debug_ll.h
+++ b/include/debug_ll.h
@@ -12,6 +12,9 @@
#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
* inline function. Note that several SoCs expect the UART to be initialized
@@ -21,6 +24,7 @@
*/
#include <mach/debug_ll.h>
#endif
+#endif
#if defined (CONFIG_DEBUG_LL)