diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2012-05-12 11:15:04 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-05-13 11:02:33 +0200 |
commit | a42d8ce778f495fdc21b436b0d7c7a423002c90a (patch) | |
tree | c9588f6989e4e7d08e9377e269021a34426d741b /arch/mips | |
parent | 40492a0c1305835c996e15eb1cce2406473ae76d (diff) | |
download | barebox-a42d8ce778f495fdc21b436b0d7c7a423002c90a.tar.gz barebox-a42d8ce778f495fdc21b436b0d7c7a423002c90a.tar.xz |
MIPS: malta: use common DEBUG_LL code for NS16550
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/mach-malta/include/mach/debug_ll.h | 11 | ||||
-rw-r--r-- | arch/mips/mach-malta/include/mach/hardware.h | 1 |
2 files changed, 2 insertions, 10 deletions
diff --git a/arch/mips/mach-malta/include/mach/debug_ll.h b/arch/mips/mach-malta/include/mach/debug_ll.h index ccc9d9bfc7..9de469ba86 100644 --- a/arch/mips/mach-malta/include/mach/debug_ll.h +++ b/arch/mips/mach-malta/include/mach/debug_ll.h @@ -24,17 +24,8 @@ #ifndef __INCLUDE_ARCH_DEBUG_LL_H__ #define __INCLUDE_ARCH_DEBUG_LL_H__ -#include <io.h> #include <mach/hardware.h> -#define rbr 0 -#define lsr 5 -#define LSR_THRE 0x20 /* Xmit holding register empty */ - -static __inline__ void putc(char ch) -{ - while (!(__raw_readb(DEBUG_LL_UART_ADDR + lsr) & LSR_THRE)); - __raw_writeb(ch, DEBUG_LL_UART_ADDR + rbr); -} +#include <debug_ll_ns16550.h> #endif /* __INCLUDE_ARCH_DEBUG_LL_H__ */ diff --git a/arch/mips/mach-malta/include/mach/hardware.h b/arch/mips/mach-malta/include/mach/hardware.h index f827cc3557..ddeb1b7dd0 100644 --- a/arch/mips/mach-malta/include/mach/hardware.h +++ b/arch/mips/mach-malta/include/mach/hardware.h @@ -22,6 +22,7 @@ #define __INCLUDE_ARCH_HARDWARE_H__ #define DEBUG_LL_UART_ADDR 0xb00003f8 +#define DEBUG_LL_UART_SHIFT 0 /* * Reset register. |