rk29: uncompress implement putc
author黄涛 <huangtao@rock-chips.com>
Mon, 14 Mar 2011 13:07:24 +0000 (21:07 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 14 Mar 2011 13:12:27 +0000 (21:12 +0800)
arch/arm/mach-rk29/include/mach/uncompress.h

index 8f09385be359604a1c27d3e4a5f27348f4672658..250c4e7caab2d2ee7e4deed2fda2739033ccaa84 100644 (file)
 
 #ifndef __ASM_ARCH_RK29_UNCOMPRESS_H
 
-#include "hardware.h"
+#include <mach/rk29_iomap.h>
 
 static void putc(int c)
 {
+       while (!(*(volatile u32 *) (RK29_UART1_PHYS + 0x14) & (1 << 5)))
+               barrier();
+       *(volatile u32 *) (RK29_UART1_PHYS) = c;
 }
 
 static inline void flush(void)