Skip to contentSkip to conversation

fixup! RISC-V: erizo: drop mach-erizo directory

PATCH Applied Ahmad Fatoum 2 participants 2 messages May 7, 2021 – May 10, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixup! RISC-V: erizo: drop mach-erizo directory

Erizo can't be built without DEBUG_LL at the moment, because debug_ll_ns16550_init is not defined when DEBUG_LL is off.

Add new debug_ll_init() which expands to nought when CONFIG_DEBUG_LL=n.

---
 arch/riscv/boards/erizo/lowlevel.c        | 2 +-
 arch/riscv/include/asm/debug_ll.h         | 4 ++++
 arch/riscv/include/asm/debug_ll_ns16550.h | 2 ++
 3 files changed, 7 insertions(+), 1 deletion(-)
arch/riscv/boards/erizo/lowlevel.c +1 -1
index d9edb530b746..6acf15931cdf 100644
@@ -8,7 +8,7 @@ ENTRY_FUNCTION(start_erizo_generic, a0, a1, a2)
 {
 	extern char __dtb_z_erizo_generic_start[];
 
-	debug_ll_ns16550_init();
+	debug_ll_init();
 	putc_ll('>');
 
 	/* On POR, we are running from read-only memory here. */
arch/riscv/include/asm/debug_ll.h +4 -0
index 6ef26280d14e..6904460af98f 100644
@@ -40,4 +40,8 @@ static inline void PUTC_LL(char ch)
 
 #endif
 
+#ifndef debug_ll_init
+#define debug_ll_init() (void)0
+#endif
+
 #endif /* __ASM_DEBUG_LL__ */
arch/riscv/include/asm/debug_ll_ns16550.h +2 -0
index b09882ddad14..e208ef4fb1e1 100644
@@ -168,4 +168,6 @@ static inline void debug_ll_ns16550_init(void)
 .endm
 #endif /* __ASSEMBLY__ */
 
+#define debug_ll_init debug_ll_ns16550_init
+
 #endif /* __INCLUDE_RISCV_ASM_DEBUG_LL_NS16550_H__ */
Signature · 7 lines
2.31.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 9 lines · Ahmad Fatoum

Erizo can't be built without DEBUG_LL at the moment, because debug_ll_ns16550_init is not defined when DEBUG_LL is off.

Add new debug_ll_init() which expands to nought when CONFIG_DEBUG_LL=n.

---
 arch/riscv/boards/erizo/lowlevel.c        | 2 +-
 arch/riscv/include/asm/debug_ll.h         | 4 ++++
 arch/riscv/include/asm/debug_ll_ns16550.h | 2 ++
 3 files changed, 7 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

Quoted 47 lines
arch/riscv/boards/erizo/lowlevel.c +1 -1
index d9edb530b746..6acf15931cdf 100644
@@ -8,7 +8,7 @@ ENTRY_FUNCTION(start_erizo_generic, a0, a1, a2)
 {
 	extern char __dtb_z_erizo_generic_start[];
 
-	debug_ll_ns16550_init();
+	debug_ll_init();
 	putc_ll('>');
 
 	/* On POR, we are running from read-only memory here. */
arch/riscv/include/asm/debug_ll.h +4 -0
index 6ef26280d14e..6904460af98f 100644
@@ -40,4 +40,8 @@ static inline void PUTC_LL(char ch)
 
 #endif
 
+#ifndef debug_ll_init
+#define debug_ll_init() (void)0
+#endif
+
 #endif /* __ASM_DEBUG_LL__ */
arch/riscv/include/asm/debug_ll_ns16550.h +2 -0
index b09882ddad14..e208ef4fb1e1 100644
@@ -168,4 +168,6 @@ static inline void debug_ll_ns16550_init(void)
 .endm
 #endif /* __ASSEMBLY__ */
 
+#define debug_ll_init debug_ll_ns16550_init
+
 #endif /* __INCLUDE_RISCV_ASM_DEBUG_LL_NS16550_H__ */
Signature · 7 lines
2.31.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox