提交 040f0459 编写于 作者: W wanzongshun 提交者: Russell King

ARM: 5855/1: putc support for nuc900

putc support for nuc900
Signed-off-by: Nlijie <eltshanli@gmail.com>
Signed-off-by: NWan ZongShun <mcuos.com@gmail.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 d76cdf23
...@@ -22,11 +22,21 @@ ...@@ -22,11 +22,21 @@
#include <mach/regs-serial.h> #include <mach/regs-serial.h>
#include <mach/map.h> #include <mach/map.h>
#include <linux/serial_reg.h>
#define arch_decomp_wdog() #define arch_decomp_wdog()
#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
static volatile u32 * uart_base = (u32 *)UART0_PA;
static void putc(int ch) static void putc(int ch)
{ {
/* Check THRE and TEMT bits before we transmit the character.
*/
while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
barrier();
*uart_base = ch;
} }
static inline void flush(void) static inline void flush(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册