Skip to contentSkip to conversation

arm: mvebu: Remove commented example code

PATCH In review Pali Rohár 2 participants 3 messages Dec 17, 2021 – Dec 18, 2021

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

PATCH 1/1 arm: mvebu: Remove commented example code

Include file debug_uart.h already contains documentation how to use it.

---
 arch/arm/mach-mvebu/spl.c | 13 -------------
 1 file changed, 13 deletions(-)
arch/arm/mach-mvebu/spl.c +0 -13
index 6a9e1d860cf7..29a8adc9d79c 100644
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <dm.h>
-#include <debug_uart.h>
 #include <fdtdec.h>
 #include <hang.h>
 #include <image.h>
@@ -303,18 +302,6 @@ void board_init_f(ulong dummy)
 	 */
 	board_early_init_f();
 
-	/* Example code showing how to enable the debug UART on MVEBU */
-#ifdef EARLY_UART
-	/*
-	 * Debug UART can be used from here if required:
-	 *
-	 * debug_uart_init();
-	 * printch('a');
-	 * printhex8(0x1234);
-	 * printascii("string");
-	 */
-#endif
-
 	/*
 	 * Use special translation offset for SPL. This needs to be
 	 * configured *before* spl_init() is called as this function
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Pali Rohár

Include file debug_uart.h already contains documentation how to use it.

Thanks,
Stefan

Quoted 26 lines
---
  arch/arm/mach-mvebu/spl.c | 13 -------------
  1 file changed, 13 deletions(-)
arch/arm/mach-mvebu/spl.c +0 -6
index 6a9e1d860cf7..29a8adc9d79c 100644
@@ -5,7 +5,6 @@
 
  #include <common.h>
  #include <dm.h>
-#include <debug_uart.h>
  #include <fdtdec.h>
  #include <hang.h>
  #include <image.h>
@@ -303,18 +302,6 @@ void board_init_f(ulong dummy)
  	 */
  	board_early_init_f();
 
-	/* Example code showing how to enable the debug UART on MVEBU */
-#ifdef EARLY_UART
-	/*
-	 * Debug UART can be used from here if required:
-	 *

arch/arm/mach-mvebu/spl.c void board_init_f(ulong dummy) · line 307

Quoted 10 lines
arch/arm/mach-mvebu/spl.c +0 -7
-	 * debug_uart_init();
-	 * printch('a');
-	 * printhex8(0x1234);
-	 * printascii("string");
-	 */
-#endif
-
  	/*
  	 * Use special translation offset for SPL. This needs to be
  	 * configured *before* spl_init() is called as this function

Viele Grüße,
Stefan Roese

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#2 lore raw
In reply to Pali Rohár
Quoted 3 lines · Pali Rohár

Include file debug_uart.h already contains documentation how to use it.

Applied to u-boot-marvell/next

Thanks,
Stefan

Quoted 26 lines
---
  arch/arm/mach-mvebu/spl.c | 13 -------------
  1 file changed, 13 deletions(-)
arch/arm/mach-mvebu/spl.c +0 -6
index 6a9e1d860cf7..29a8adc9d79c 100644
@@ -5,7 +5,6 @@
 
  #include <common.h>
  #include <dm.h>
-#include <debug_uart.h>
  #include <fdtdec.h>
  #include <hang.h>
  #include <image.h>
@@ -303,18 +302,6 @@ void board_init_f(ulong dummy)
  	 */
  	board_early_init_f();
 
-	/* Example code showing how to enable the debug UART on MVEBU */
-#ifdef EARLY_UART
-	/*
-	 * Debug UART can be used from here if required:
-	 *

arch/arm/mach-mvebu/spl.c void board_init_f(ulong dummy) · line 307

Quoted 10 lines
arch/arm/mach-mvebu/spl.c +0 -7
-	 * debug_uart_init();
-	 * printch('a');
-	 * printhex8(0x1234);
-	 * printascii("string");
-	 */
-#endif
-
  	/*
  	 * Use special translation offset for SPL. This needs to be
  	 * configured *before* spl_init() is called as this function

Viele Grüße,
Stefan Roese

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]