summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2014-12-27 02:56:25 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-05 12:33:53 +0100
commit1ea79db34be3dc022bf5e7f25b65e19060f2be45 (patch)
treefcb0d3f454b578dcbf28c6450a8e1912d70bfcdc /arch
parentbe7bbf30dc6e51e09422ba71154e6f64add2f9bb (diff)
downloadbarebox-1ea79db34be3dc022bf5e7f25b65e19060f2be45.tar.gz
barebox-1ea79db34be3dc022bf5e7f25b65e19060f2be45.tar.xz
ARM: vexpress: debug_ll.h: switch to debug_ll_pl011.h
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-vexpress/include/mach/debug_ll.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/arch/arm/mach-vexpress/include/mach/debug_ll.h b/arch/arm/mach-vexpress/include/mach/debug_ll.h
index 15d6e85239..89b06923ad 100644
--- a/arch/arm/mach-vexpress/include/mach/debug_ll.h
+++ b/arch/arm/mach-vexpress/include/mach/debug_ll.h
@@ -14,20 +14,11 @@
#define DEBUG_LL_PHYS_BASE_RS1 0x1c000000
#ifdef MP
-#define UART_BASE DEBUG_LL_PHYS_BASE
+#define DEBUG_LL_UART_ADDR DEBUG_LL_PHYS_BASE
#else
-#define UART_BASE DEBUG_LL_PHYS_BASE_RS1
+#define DEBUG_LL_UART_ADDR DEBUG_LL_PHYS_BASE_RS1
#endif
-static inline void PUTC_LL(char c)
-{
- /* Wait until there is space in the FIFO */
- while (readl(UART_BASE + UART01x_FR) & UART01x_FR_TXFF);
+#include <asm/debug_ll_pl011.h>
- /* Send the character */
- writel(c, UART_BASE + UART01x_DR);
-
- /* Wait to make sure it hits the line, in case we die too soon. */
- while (readl(UART_BASE + UART01x_FR) & UART01x_FR_TXFF);
-}
#endif