[PATCH 05/17] ARM: am33xx Phytec phyCORE: initialize debug UART

Sascha Hauer s.hauer at pengutronix.de
Tue Nov 26 11:45:55 EST 2013


Add debug UART initialization to lowlevel init and print a '>'. Helps
debugging lowlevel code.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/boards/pcm051/lowlevel.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/boards/pcm051/lowlevel.c b/arch/arm/boards/pcm051/lowlevel.c
index ded108e..08f36ec 100644
--- a/arch/arm/boards/pcm051/lowlevel.c
+++ b/arch/arm/boards/pcm051/lowlevel.c
@@ -13,6 +13,7 @@
 #include <mach/am33xx-mux.h>
 #include <mach/am33xx-generic.h>
 #include <mach/wdt.h>
+#include <debug_ll.h>
 
 static const struct am33xx_cmd_control MT41J256M8HX15E_2x256M8_cmd = {
 	.slave_ratio0 = 0x40,
@@ -76,6 +77,8 @@ static int pcm051_board_init(void)
 
 	am33xx_uart0_soft_reset();
 	am33xx_enable_uart0_pin_mux();
+	omap_uart_lowlevel_init((void *)AM33XX_UART0_BASE);
+	putc_ll('>');
 
 	return 0;
 }
-- 
1.8.4.2




More information about the barebox mailing list