Skip to content

Commit

Permalink
ARM: 5855/1: putc support for nuc900
Browse files Browse the repository at this point in the history
putc support for nuc900

Signed-off-by: lijie <eltshanli@gmail.com>
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
wanzongshun authored and Russell King committed Dec 22, 2009
1 parent d76cdf2 commit 040f045
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/arm/mach-w90x900/include/mach/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,21 @@

#include <mach/regs-serial.h>
#include <mach/map.h>
#include <linux/serial_reg.h>

#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)
{
/* 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)
Expand Down

0 comments on commit 040f045

Please sign in to comment.