diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2014-12-27 02:56:28 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-05 12:33:54 +0100 |
commit | 45de5790d017ff7473d59cbd7c48265539673e69 (patch) | |
tree | 53a34ee1535e79b3e30fd0183fc13d9fb68d05cf /arch/arm/mach-versatile | |
parent | 59934788d1b1ee5263676281ff40dc11eb1effe1 (diff) | |
download | barebox-45de5790d017ff7473d59cbd7c48265539673e69.tar.gz barebox-45de5790d017ff7473d59cbd7c48265539673e69.tar.xz |
ARM: versatile: 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-versatile')
-rw-r--r-- | arch/arm/mach-versatile/include/mach/debug_ll.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/arch/arm/mach-versatile/include/mach/debug_ll.h b/arch/arm/mach-versatile/include/mach/debug_ll.h index f91812b12d..e6ee877a54 100644 --- a/arch/arm/mach-versatile/include/mach/debug_ll.h +++ b/arch/arm/mach-versatile/include/mach/debug_ll.h @@ -16,19 +16,8 @@ #ifndef __MACH_DEBUG_LL_H__ #define __MACH_DEBUG_LL_H__ -#include <linux/amba/serial.h> -#include <io.h> +#define DEBUG_LL_UART_ADDR 0x101F1000 -static inline void PUTC_LL(char c) -{ - /* Wait until there is space in the FIFO */ - while (readl(0x101F1000 + UART01x_FR) & UART01x_FR_TXFF); - - /* Send the character */ - writel(c, 0x101F1000 + UART01x_DR); - - /* Wait to make sure it hits the line, in case we die too soon. */ - while (readl(0x101F1000 + UART01x_FR) & UART01x_FR_TXFF); -} +#include <asm/debug_ll_pl011.h> #endif |