diff options
author | Baruch Siach <baruch@tkos.co.il> | 2013-11-17 01:14:54 -0500 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-01-14 15:21:24 -0500 |
commit | 4809bb468f140d561dfbb785e8dcdda5bae8c1f2 (patch) | |
tree | 592d396d2c2f03d6e3d0dc95f4a856cb83f4e4eb /arch | |
parent | 5f42146e7599e120ee3f5b07d03ea45c633a955a (diff) |
xtensa: avoid duplicate of IO range definitions
Define IO addresses in a single place, to make it easier to change for
non-standard memory maps.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/xtensa/include/asm/initialize_mmu.h | 8 | ||||
-rw-r--r-- | arch/xtensa/include/asm/io.h | 6 | ||||
-rw-r--r-- | arch/xtensa/include/asm/vectors.h | 5 |
3 files changed, 10 insertions, 9 deletions
diff --git a/arch/xtensa/include/asm/initialize_mmu.h b/arch/xtensa/include/asm/initialize_mmu.h index 722553f17db3..a2078a2e5476 100644 --- a/arch/xtensa/include/asm/initialize_mmu.h +++ b/arch/xtensa/include/asm/initialize_mmu.h | |||
@@ -123,13 +123,13 @@ | |||
123 | wdtlb a4, a5 | 123 | wdtlb a4, a5 |
124 | witlb a4, a5 | 124 | witlb a4, a5 |
125 | 125 | ||
126 | movi a5, 0xe0000006 | 126 | movi a5, XCHAL_KIO_CACHED_VADDR + 6 |
127 | movi a4, 0xf0000000 + CA_WRITEBACK | 127 | movi a4, XCHAL_KIO_PADDR + CA_WRITEBACK |
128 | wdtlb a4, a5 | 128 | wdtlb a4, a5 |
129 | witlb a4, a5 | 129 | witlb a4, a5 |
130 | 130 | ||
131 | movi a5, 0xf0000006 | 131 | movi a5, XCHAL_KIO_BYPASS_VADDR + 6 |
132 | movi a4, 0xf0000000 + CA_BYPASS | 132 | movi a4, XCHAL_KIO_PADDR + CA_BYPASS |
133 | wdtlb a4, a5 | 133 | wdtlb a4, a5 |
134 | witlb a4, a5 | 134 | witlb a4, a5 |
135 | 135 | ||
diff --git a/arch/xtensa/include/asm/io.h b/arch/xtensa/include/asm/io.h index 700c2e6f2d25..1482a3636381 100644 --- a/arch/xtensa/include/asm/io.h +++ b/arch/xtensa/include/asm/io.h | |||
@@ -14,16 +14,12 @@ | |||
14 | #ifdef __KERNEL__ | 14 | #ifdef __KERNEL__ |
15 | #include <asm/byteorder.h> | 15 | #include <asm/byteorder.h> |
16 | #include <asm/page.h> | 16 | #include <asm/page.h> |
17 | #include <asm/vectors.h> | ||
17 | #include <linux/bug.h> | 18 | #include <linux/bug.h> |
18 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
19 | 20 | ||
20 | #include <linux/types.h> | 21 | #include <linux/types.h> |
21 | 22 | ||
22 | #define XCHAL_KIO_CACHED_VADDR 0xe0000000 | ||
23 | #define XCHAL_KIO_BYPASS_VADDR 0xf0000000 | ||
24 | #define XCHAL_KIO_PADDR 0xf0000000 | ||
25 | #define XCHAL_KIO_SIZE 0x10000000 | ||
26 | |||
27 | #define IOADDR(x) (XCHAL_KIO_BYPASS_VADDR + (x)) | 23 | #define IOADDR(x) (XCHAL_KIO_BYPASS_VADDR + (x)) |
28 | #define IO_SPACE_LIMIT ~0 | 24 | #define IO_SPACE_LIMIT ~0 |
29 | 25 | ||
diff --git a/arch/xtensa/include/asm/vectors.h b/arch/xtensa/include/asm/vectors.h index 37e073b21a50..221a60d804d5 100644 --- a/arch/xtensa/include/asm/vectors.h +++ b/arch/xtensa/include/asm/vectors.h | |||
@@ -20,6 +20,11 @@ | |||
20 | 20 | ||
21 | #include <variant/core.h> | 21 | #include <variant/core.h> |
22 | 22 | ||
23 | #define XCHAL_KIO_CACHED_VADDR 0xe0000000 | ||
24 | #define XCHAL_KIO_BYPASS_VADDR 0xf0000000 | ||
25 | #define XCHAL_KIO_PADDR 0xf0000000 | ||
26 | #define XCHAL_KIO_SIZE 0x10000000 | ||
27 | |||
23 | #if defined(CONFIG_MMU) | 28 | #if defined(CONFIG_MMU) |
24 | 29 | ||
25 | /* Will Become VECBASE */ | 30 | /* Will Become VECBASE */ |