Skip to content

Commit

Permalink
arm: vt8500: Fix build warning in uncompress.h
Browse files Browse the repository at this point in the history
This removes a build-time warning in uncompress.h due to incorrectly
cast values being passed to readb/writeb.

Removed arm/io.h and readb/writeb. Read/write directly to the serial
port with a volatile pointer.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Tony Prisk authored and Olof Johansson committed Oct 7, 2012
1 parent 6852826 commit 096947f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/arm/mach-vt8500/include/mach/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
*
*/

#define UART0_PHYS 0xd8200000
#include <asm/io.h>
#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)
Expand Down

0 comments on commit 096947f

Please sign in to comment.