Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+5 -3
+5 -3
include/asm-xtensa/io.h
··· 18 18 19 19 #include <linux/types.h> 20 20 21 - #define XCHAL_KIO_CACHED_VADDR 0xf0000000 22 - #define XCHAL_KIO_BYPASS_VADDR 0xf8000000 21 + #define XCHAL_KIO_CACHED_VADDR 0xe0000000 22 + #define XCHAL_KIO_BYPASS_VADDR 0xf0000000 23 23 #define XCHAL_KIO_PADDR 0xf0000000 24 - #define XCHAL_KIO_SIZE 0x08000000 24 + #define XCHAL_KIO_SIZE 0x10000000 25 + 26 + #define IOADDR(x) (XCHAL_KIO_BYPASS_VADDR + (x)) 25 27 26 28 /* 27 29 * swap functions to change byte order from little-endian to big-endian and