diff options
Diffstat (limited to 'arch/mips/include/asm/mach-generic/spaces.h')
-rw-r--r-- | arch/mips/include/asm/mach-generic/spaces.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/mips/include/asm/mach-generic/spaces.h b/arch/mips/include/asm/mach-generic/spaces.h index afc96ecb9004..952b0fdfda0e 100644 --- a/arch/mips/include/asm/mach-generic/spaces.h +++ b/arch/mips/include/asm/mach-generic/spaces.h | |||
@@ -12,6 +12,8 @@ | |||
12 | 12 | ||
13 | #include <linux/const.h> | 13 | #include <linux/const.h> |
14 | 14 | ||
15 | #include <asm/mipsregs.h> | ||
16 | |||
15 | /* | 17 | /* |
16 | * This gives the physical RAM offset. | 18 | * This gives the physical RAM offset. |
17 | */ | 19 | */ |
@@ -52,11 +54,7 @@ | |||
52 | #ifdef CONFIG_64BIT | 54 | #ifdef CONFIG_64BIT |
53 | 55 | ||
54 | #ifndef CAC_BASE | 56 | #ifndef CAC_BASE |
55 | #ifdef CONFIG_DMA_NONCOHERENT | 57 | #define CAC_BASE PHYS_TO_XKPHYS(read_c0_config() & CONF_CM_CMASK, 0) |
56 | #define CAC_BASE _AC(0x9800000000000000, UL) | ||
57 | #else | ||
58 | #define CAC_BASE _AC(0xa800000000000000, UL) | ||
59 | #endif | ||
60 | #endif | 58 | #endif |
61 | 59 | ||
62 | #ifndef IO_BASE | 60 | #ifndef IO_BASE |