|
@@ -16,13 +16,18 @@
|
|
#define CAC_BASE 0x80000000
|
|
#define CAC_BASE 0x80000000
|
|
#define IO_BASE 0xa0000000
|
|
#define IO_BASE 0xa0000000
|
|
#define UNCAC_BASE 0xa0000000
|
|
#define UNCAC_BASE 0xa0000000
|
|
|
|
+
|
|
|
|
+#ifndef MAP_BASE
|
|
#define MAP_BASE 0xc0000000
|
|
#define MAP_BASE 0xc0000000
|
|
|
|
+#endif
|
|
|
|
|
|
/*
|
|
/*
|
|
* This handles the memory map.
|
|
* This handles the memory map.
|
|
* We handle pages at KSEG0 for kernels with 32 bit address space.
|
|
* We handle pages at KSEG0 for kernels with 32 bit address space.
|
|
*/
|
|
*/
|
|
|
|
+#ifndef PAGE_OFFSET
|
|
#define PAGE_OFFSET 0x80000000UL
|
|
#define PAGE_OFFSET 0x80000000UL
|
|
|
|
+#endif
|
|
|
|
|
|
/*
|
|
/*
|
|
* Memory above this physical address will be considered highmem.
|
|
* Memory above this physical address will be considered highmem.
|
|
@@ -38,11 +43,13 @@
|
|
/*
|
|
/*
|
|
* This handles the memory map.
|
|
* This handles the memory map.
|
|
*/
|
|
*/
|
|
|
|
+#ifndef PAGE_OFFSET
|
|
#ifdef CONFIG_DMA_NONCOHERENT
|
|
#ifdef CONFIG_DMA_NONCOHERENT
|
|
#define PAGE_OFFSET 0x9800000000000000UL
|
|
#define PAGE_OFFSET 0x9800000000000000UL
|
|
#else
|
|
#else
|
|
#define PAGE_OFFSET 0xa800000000000000UL
|
|
#define PAGE_OFFSET 0xa800000000000000UL
|
|
#endif
|
|
#endif
|
|
|
|
+#endif
|
|
|
|
|
|
/*
|
|
/*
|
|
* Memory above this physical address will be considered highmem.
|
|
* Memory above this physical address will be considered highmem.
|
|
@@ -53,14 +60,25 @@
|
|
#define HIGHMEM_START (1UL << 59UL)
|
|
#define HIGHMEM_START (1UL << 59UL)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#ifndef CAC_BASE
|
|
#ifdef CONFIG_DMA_NONCOHERENT
|
|
#ifdef CONFIG_DMA_NONCOHERENT
|
|
#define CAC_BASE 0x9800000000000000UL
|
|
#define CAC_BASE 0x9800000000000000UL
|
|
#else
|
|
#else
|
|
#define CAC_BASE 0xa800000000000000UL
|
|
#define CAC_BASE 0xa800000000000000UL
|
|
#endif
|
|
#endif
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#ifndef IO_BASE
|
|
#define IO_BASE 0x9000000000000000UL
|
|
#define IO_BASE 0x9000000000000000UL
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#ifndef UNCAC_BASE
|
|
#define UNCAC_BASE 0x9000000000000000UL
|
|
#define UNCAC_BASE 0x9000000000000000UL
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#ifndef MAP_BASE
|
|
#define MAP_BASE 0xc000000000000000UL
|
|
#define MAP_BASE 0xc000000000000000UL
|
|
|
|
+#endif
|
|
|
|
|
|
#define TO_PHYS(x) ( ((x) & TO_PHYS_MASK))
|
|
#define TO_PHYS(x) ( ((x) & TO_PHYS_MASK))
|
|
#define TO_CAC(x) (CAC_BASE | ((x) & TO_PHYS_MASK))
|
|
#define TO_CAC(x) (CAC_BASE | ((x) & TO_PHYS_MASK))
|