From 6593361f343edab707996940938401a17a17a261 Mon Sep 17 00:00:00 2001 From: Tony Prisk Date: Mon, 8 Oct 2012 10:23:32 +1300 Subject: [PATCH] --- yaml --- r: 333305 b: refs/heads/master c: 096947fdab96fd97df47b10b8547382290ef9fcd h: refs/heads/master i: 333303: 5970963a29e21d60f968ef94f00261d047fb5225 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-vt8500/include/mach/uncompress.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 05cc708648de..ba80057d901f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 68528265149d2861195fc81aa3cdb64120953e12 +refs/heads/master: 096947fdab96fd97df47b10b8547382290ef9fcd diff --git a/trunk/arch/arm/mach-vt8500/include/mach/uncompress.h b/trunk/arch/arm/mach-vt8500/include/mach/uncompress.h index bb9e2d23fee3..e6e81fdaf109 100644 --- a/trunk/arch/arm/mach-vt8500/include/mach/uncompress.h +++ b/trunk/arch/arm/mach-vt8500/include/mach/uncompress.h @@ -15,15 +15,15 @@ * */ -#define UART0_PHYS 0xd8200000 -#include +#define UART0_PHYS 0xd8200000 +#define UART0_ADDR(x) *(volatile unsigned char *)(UART0_PHYS + x) static void putc(const char c) { - while (readb(UART0_PHYS + 0x1c) & 0x2) + while (UART0_ADDR(0x1c) & 0x2) /* Tx busy, wait and poll */; - writeb(c, UART0_PHYS); + UART0_ADDR(0) = c; } static void flush(void)