From 2f0da049b9382ac313164c362c79292fac7012cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Mon, 14 Mar 2011 21:07:24 +0800 Subject: [PATCH] rk29: uncompress implement putc --- arch/arm/mach-rk29/include/mach/uncompress.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rk29/include/mach/uncompress.h b/arch/arm/mach-rk29/include/mach/uncompress.h index 8f09385be359..250c4e7caab2 100644 --- a/arch/arm/mach-rk29/include/mach/uncompress.h +++ b/arch/arm/mach-rk29/include/mach/uncompress.h @@ -15,10 +15,13 @@ #ifndef __ASM_ARCH_RK29_UNCOMPRESS_H -#include "hardware.h" +#include 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) -- 2.34.1