summaryrefslogtreecommitdiffstats
path: root/include/asm-xtensa
diff options
context:
space:
mode:
authorChris Zankel <chris@zankel.net>2008-10-21 09:08:31 -0700
committerChris Zankel <chris@zankel.net>2008-10-21 09:08:31 -0700
commit00c81d23d330207d0fb99ca0c6682265d287816c (patch)
tree4c65778ad15896460c3b7bf1ad9cf5a0d252bbab /include/asm-xtensa
parent74f2a5f0ef643b7b277f7a270f85573f88d930d1 (diff)
downloadlinux-stable-00c81d23d330207d0fb99ca0c6682265d287816c.tar.gz
linux-stable-00c81d23d330207d0fb99ca0c6682265d287816c.tar.bz2
linux-stable-00c81d23d330207d0fb99ca0c6682265d287816c.zip
xtensa: Fix io regions
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>
Diffstat (limited to 'include/asm-xtensa')
-rw-r--r--include/asm-xtensa/io.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-xtensa/io.h b/include/asm-xtensa/io.h
index 47c3616ea9ac..07b7299dab20 100644
--- a/include/asm-xtensa/io.h
+++ b/include/asm-xtensa/io.h
@@ -18,10 +18,12 @@
#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