]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
xtensa: Fix io regions
authorChris Zankel <chris@zankel.net>
Tue, 21 Oct 2008 16:08:31 +0000 (09:08 -0700)
committerChris Zankel <chris@zankel.net>
Tue, 21 Oct 2008 16:08:31 +0000 (09:08 -0700)
The uncached area starts at e000.0000 and spans 1GB. Also add an IOADDR
macro to determine the bypass region to access the IO space.

Signed-off-by: Chris Zankel <chris@zankel.net>
include/asm-xtensa/io.h

index 47c3616ea9acc4ec937d3fd9db25d9563f62a6f1..07b7299dab20e3ccb8c6c5740d408cf577d8174f 100644 (file)
 
 #include <linux/types.h>
 
-#define XCHAL_KIO_CACHED_VADDR 0xf0000000
-#define XCHAL_KIO_BYPASS_VADDR 0xf8000000
+#define XCHAL_KIO_CACHED_VADDR 0xe0000000
+#define XCHAL_KIO_BYPASS_VADDR 0xf0000000
 #define XCHAL_KIO_PADDR                0xf0000000
-#define XCHAL_KIO_SIZE         0x08000000
+#define XCHAL_KIO_SIZE         0x10000000
+
+#define IOADDR(x)              (XCHAL_KIO_BYPASS_VADDR + (x))
 
 /*
  * swap functions to change byte order from little-endian to big-endian and