summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-highbank
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2014-12-27 02:56:26 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-05 12:33:54 +0100
commitb2971067cb1e8eb60203fee6dc2e767d5085128c (patch)
tree99f0dd57848b673e8533b852075a1f90d8df64f5 /arch/arm/mach-highbank
parent1ea79db34be3dc022bf5e7f25b65e19060f2be45 (diff)
downloadbarebox-b2971067cb1e8eb60203fee6dc2e767d5085128c.tar.gz
barebox-b2971067cb1e8eb60203fee6dc2e767d5085128c.tar.xz
ARM: highbank: 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/arm/mach-highbank')
-rw-r--r--arch/arm/mach-highbank/include/mach/debug_ll.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/arch/arm/mach-highbank/include/mach/debug_ll.h b/arch/arm/mach-highbank/include/mach/debug_ll.h
index 4cdbb3ce51..1820eb1d13 100644
--- a/arch/arm/mach-highbank/include/mach/debug_ll.h
+++ b/arch/arm/mach-highbank/include/mach/debug_ll.h
@@ -7,20 +7,8 @@
#ifndef __MACH_DEBUG_LL_H__
#define __MACH_DEBUG_LL_H__
-#include <linux/amba/serial.h>
-#include <io.h>
+#define DEBUG_LL_UART_ADDR 0xfff36000
-#define UART_BASE 0xfff36000
+#include <asm/debug_ll_pl011.h>
-static inline void PUTC_LL(char c)
-{
- /* Wait until there is space in the FIFO */
- while (readl(UART_BASE + UART01x_FR) & UART01x_FR_TXFF);
-
- /* 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