Skip to content

Commit

Permalink
xtensa: Fix io regions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Zankel committed Oct 21, 2008
1 parent 74f2a5f commit 00c81d2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions include/asm-xtensa/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00c81d2

Please sign in to comment.