From: wanzongshun Date: Fri, 18 Dec 2009 17:00:37 +0000 (+0100) Subject: ARM: 5855/1: putc support for nuc900 X-Git-Tag: v2.6.33-rc2~5^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=040f04598c6f494796815a4fc203379ff9fb847e;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git ARM: 5855/1: putc support for nuc900 putc support for nuc900 Signed-off-by: lijie Signed-off-by: Wan ZongShun Signed-off-by: Russell King --- diff --git a/arch/arm/mach-w90x900/include/mach/uncompress.h b/arch/arm/mach-w90x900/include/mach/uncompress.h index 050d9fe..56f1a74 100644 --- a/arch/arm/mach-w90x900/include/mach/uncompress.h +++ b/arch/arm/mach-w90x900/include/mach/uncompress.h @@ -22,11 +22,21 @@ #include #include +#include #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)