Commit 096947fd authored by Tony Prisk's avatar Tony Prisk Committed by Olof Johansson

arm: vt8500: Fix build warning in uncompress.h

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: default avatarTony Prisk <linux@prisktech.co.nz>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 68528265
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment