diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-03-16 19:35:27 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-03-16 19:35:27 -0400 |
commit | 05e34754518b6a90d5c392790c032575fab12d66 (patch) | |
tree | 318d321262269eff585573ab2acf04a2ff2b65f4 /arch/arm | |
parent | bd1274dc005c2cee41771a7cc616f4709a6e6323 (diff) | |
parent | b511d75d6150892e67c8ebfa9dc8eb37ebd02aa3 (diff) |
Merge branch 'p2v' into devel
Conflicts:
arch/arm/kernel/module.c
arch/arm/mach-s5pv210/sleep.S
Diffstat (limited to 'arch/arm')
86 files changed, 434 insertions, 189 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ababf41517d6..48a0628d93e8 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -190,6 +190,22 @@ config VECTORS_BASE | |||
190 | help | 190 | help |
191 | The base address of exception vectors. | 191 | The base address of exception vectors. |
192 | 192 | ||
193 | config ARM_PATCH_PHYS_VIRT | ||
194 | bool "Patch physical to virtual translations at runtime (EXPERIMENTAL)" | ||
195 | depends on EXPERIMENTAL | ||
196 | depends on !XIP_KERNEL && MMU | ||
197 | depends on !ARCH_REALVIEW || !SPARSEMEM | ||
198 | help | ||
199 | Patch phys-to-virt translation functions at runtime according to | ||
200 | the position of the kernel in system memory. | ||
201 | |||
202 | This can only be used with non-XIP with MMU kernels where | ||
203 | the base of physical memory is at a 16MB boundary. | ||
204 | |||
205 | config ARM_PATCH_PHYS_VIRT_16BIT | ||
206 | def_bool y | ||
207 | depends on ARM_PATCH_PHYS_VIRT && ARCH_MSM | ||
208 | |||
193 | source "init/Kconfig" | 209 | source "init/Kconfig" |
194 | 210 | ||
195 | source "kernel/Kconfig.freezer" | 211 | source "kernel/Kconfig.freezer" |
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index d0ee74b7cf86..431077c5a867 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h | |||
@@ -15,6 +15,7 @@ | |||
15 | 15 | ||
16 | #include <linux/compiler.h> | 16 | #include <linux/compiler.h> |
17 | #include <linux/const.h> | 17 | #include <linux/const.h> |
18 | #include <linux/types.h> | ||
18 | #include <mach/memory.h> | 19 | #include <mach/memory.h> |
19 | #include <asm/sizes.h> | 20 | #include <asm/sizes.h> |
20 | 21 | ||
@@ -133,20 +134,10 @@ | |||
133 | #endif | 134 | #endif |
134 | 135 | ||
135 | /* | 136 | /* |
136 | * Physical vs virtual RAM address space conversion. These are | ||
137 | * private definitions which should NOT be used outside memory.h | ||
138 | * files. Use virt_to_phys/phys_to_virt/__pa/__va instead. | ||
139 | */ | ||
140 | #ifndef __virt_to_phys | ||
141 | #define __virt_to_phys(x) ((x) - PAGE_OFFSET + PHYS_OFFSET) | ||
142 | #define __phys_to_virt(x) ((x) - PHYS_OFFSET + PAGE_OFFSET) | ||
143 | #endif | ||
144 | |||
145 | /* | ||
146 | * Convert a physical address to a Page Frame Number and back | 137 | * Convert a physical address to a Page Frame Number and back |
147 | */ | 138 | */ |
148 | #define __phys_to_pfn(paddr) ((paddr) >> PAGE_SHIFT) | 139 | #define __phys_to_pfn(paddr) ((unsigned long)((paddr) >> PAGE_SHIFT)) |
149 | #define __pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT) | 140 | #define __pfn_to_phys(pfn) ((phys_addr_t)(pfn) << PAGE_SHIFT) |
150 | 141 | ||
151 | /* | 142 | /* |
152 | * Convert a page to/from a physical address | 143 | * Convert a page to/from a physical address |
@@ -157,6 +148,62 @@ | |||
157 | #ifndef __ASSEMBLY__ | 148 | #ifndef __ASSEMBLY__ |
158 | 149 | ||
159 | /* | 150 | /* |
151 | * Physical vs virtual RAM address space conversion. These are | ||
152 | * private definitions which should NOT be used outside memory.h | ||
153 | * files. Use virt_to_phys/phys_to_virt/__pa/__va instead. | ||
154 | */ | ||
155 | #ifndef __virt_to_phys | ||
156 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT | ||
157 | |||
158 | /* | ||
159 | * Constants used to force the right instruction encodings and shifts | ||
160 | * so that all we need to do is modify the 8-bit constant field. | ||
161 | */ | ||
162 | #define __PV_BITS_31_24 0x81000000 | ||
163 | #define __PV_BITS_23_16 0x00810000 | ||
164 | |||
165 | extern unsigned long __pv_phys_offset; | ||
166 | #define PHYS_OFFSET __pv_phys_offset | ||
167 | |||
168 | #define __pv_stub(from,to,instr,type) \ | ||
169 | __asm__("@ __pv_stub\n" \ | ||
170 | "1: " instr " %0, %1, %2\n" \ | ||
171 | " .pushsection .pv_table,\"a\"\n" \ | ||
172 | " .long 1b\n" \ | ||
173 | " .popsection\n" \ | ||
174 | : "=r" (to) \ | ||
175 | : "r" (from), "I" (type)) | ||
176 | |||
177 | static inline unsigned long __virt_to_phys(unsigned long x) | ||
178 | { | ||
179 | unsigned long t; | ||
180 | __pv_stub(x, t, "add", __PV_BITS_31_24); | ||
181 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT | ||
182 | __pv_stub(t, t, "add", __PV_BITS_23_16); | ||
183 | #endif | ||
184 | return t; | ||
185 | } | ||
186 | |||
187 | static inline unsigned long __phys_to_virt(unsigned long x) | ||
188 | { | ||
189 | unsigned long t; | ||
190 | __pv_stub(x, t, "sub", __PV_BITS_31_24); | ||
191 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT | ||
192 | __pv_stub(t, t, "sub", __PV_BITS_23_16); | ||
193 | #endif | ||
194 | return t; | ||
195 | } | ||
196 | #else | ||
197 | #define __virt_to_phys(x) ((x) - PAGE_OFFSET + PHYS_OFFSET) | ||
198 | #define __phys_to_virt(x) ((x) - PHYS_OFFSET + PAGE_OFFSET) | ||
199 | #endif | ||
200 | #endif | ||
201 | |||
202 | #ifndef PHYS_OFFSET | ||
203 | #define PHYS_OFFSET PLAT_PHYS_OFFSET | ||
204 | #endif | ||
205 | |||
206 | /* | ||
160 | * The DMA mask corresponding to the maximum bus address allocatable | 207 | * The DMA mask corresponding to the maximum bus address allocatable |
161 | * using GFP_DMA. The default here places no restriction on DMA | 208 | * using GFP_DMA. The default here places no restriction on DMA |
162 | * allocations. This must be the smallest DMA mask in the system, | 209 | * allocations. This must be the smallest DMA mask in the system, |
@@ -188,12 +235,12 @@ | |||
188 | * translation for translating DMA addresses. Use the driver | 235 | * translation for translating DMA addresses. Use the driver |
189 | * DMA support - see dma-mapping.h. | 236 | * DMA support - see dma-mapping.h. |
190 | */ | 237 | */ |
191 | static inline unsigned long virt_to_phys(const volatile void *x) | 238 | static inline phys_addr_t virt_to_phys(const volatile void *x) |
192 | { | 239 | { |
193 | return __virt_to_phys((unsigned long)(x)); | 240 | return __virt_to_phys((unsigned long)(x)); |
194 | } | 241 | } |
195 | 242 | ||
196 | static inline void *phys_to_virt(unsigned long x) | 243 | static inline void *phys_to_virt(phys_addr_t x) |
197 | { | 244 | { |
198 | return (void *)(__phys_to_virt((unsigned long)(x))); | 245 | return (void *)(__phys_to_virt((unsigned long)(x))); |
199 | } | 246 | } |
diff --git a/arch/arm/include/asm/module.h b/arch/arm/include/asm/module.h index 12c8e680cbff..543b44916d2c 100644 --- a/arch/arm/include/asm/module.h +++ b/arch/arm/include/asm/module.h | |||
@@ -25,8 +25,31 @@ struct mod_arch_specific { | |||
25 | }; | 25 | }; |
26 | 26 | ||
27 | /* | 27 | /* |
28 | * Include the ARM architecture version. | 28 | * Add the ARM architecture version to the version magic string |
29 | */ | 29 | */ |
30 | #define MODULE_ARCH_VERMAGIC "ARMv" __stringify(__LINUX_ARM_ARCH__) " " | 30 | #define MODULE_ARCH_VERMAGIC_ARMVSN "ARMv" __stringify(__LINUX_ARM_ARCH__) " " |
31 | |||
32 | /* Add __virt_to_phys patching state as well */ | ||
33 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT | ||
34 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT | ||
35 | #define MODULE_ARCH_VERMAGIC_P2V "p2v16 " | ||
36 | #else | ||
37 | #define MODULE_ARCH_VERMAGIC_P2V "p2v8 " | ||
38 | #endif | ||
39 | #else | ||
40 | #define MODULE_ARCH_VERMAGIC_P2V "" | ||
41 | #endif | ||
42 | |||
43 | /* Add instruction set architecture tag to distinguish ARM/Thumb kernels */ | ||
44 | #ifdef CONFIG_THUMB2_KERNEL | ||
45 | #define MODULE_ARCH_VERMAGIC_ARMTHUMB "thumb2 " | ||
46 | #else | ||
47 | #define MODULE_ARCH_VERMAGIC_ARMTHUMB "" | ||
48 | #endif | ||
49 | |||
50 | #define MODULE_ARCH_VERMAGIC \ | ||
51 | MODULE_ARCH_VERMAGIC_ARMVSN \ | ||
52 | MODULE_ARCH_VERMAGIC_ARMTHUMB \ | ||
53 | MODULE_ARCH_VERMAGIC_P2V | ||
31 | 54 | ||
32 | #endif /* _ASM_ARM_MODULE_H */ | 55 | #endif /* _ASM_ARM_MODULE_H */ |
diff --git a/arch/arm/kernel/armksyms.c b/arch/arm/kernel/armksyms.c index d5d4185f0c24..acca35aebe28 100644 --- a/arch/arm/kernel/armksyms.c +++ b/arch/arm/kernel/armksyms.c | |||
@@ -164,3 +164,7 @@ EXPORT_SYMBOL(mcount); | |||
164 | #endif | 164 | #endif |
165 | EXPORT_SYMBOL(__gnu_mcount_nc); | 165 | EXPORT_SYMBOL(__gnu_mcount_nc); |
166 | #endif | 166 | #endif |
167 | |||
168 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT | ||
169 | EXPORT_SYMBOL(__pv_phys_offset); | ||
170 | #endif | ||
diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index 60fe2795f4a3..c9173cfbbc74 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S | |||
@@ -26,14 +26,6 @@ | |||
26 | #include <mach/debug-macro.S> | 26 | #include <mach/debug-macro.S> |
27 | #endif | 27 | #endif |
28 | 28 | ||
29 | #if (PHYS_OFFSET & 0x001fffff) | ||
30 | #error "PHYS_OFFSET must be at an even 2MiB boundary!" | ||
31 | #endif | ||
32 | |||
33 | #define KERNEL_RAM_VADDR (PAGE_OFFSET + TEXT_OFFSET) | ||
34 | #define KERNEL_RAM_PADDR (PHYS_OFFSET + TEXT_OFFSET) | ||
35 | |||
36 | |||
37 | /* | 29 | /* |
38 | * swapper_pg_dir is the virtual address of the initial page table. | 30 | * swapper_pg_dir is the virtual address of the initial page table. |
39 | * We place the page tables 16K below KERNEL_RAM_VADDR. Therefore, we must | 31 | * We place the page tables 16K below KERNEL_RAM_VADDR. Therefore, we must |
@@ -41,6 +33,7 @@ | |||
41 | * the least significant 16 bits to be 0x8000, but we could probably | 33 | * the least significant 16 bits to be 0x8000, but we could probably |
42 | * relax this restriction to KERNEL_RAM_VADDR >= PAGE_OFFSET + 0x4000. | 34 | * relax this restriction to KERNEL_RAM_VADDR >= PAGE_OFFSET + 0x4000. |
43 | */ | 35 | */ |
36 | #define KERNEL_RAM_VADDR (PAGE_OFFSET + TEXT_OFFSET) | ||
44 | #if (KERNEL_RAM_VADDR & 0xffff) != 0x8000 | 37 | #if (KERNEL_RAM_VADDR & 0xffff) != 0x8000 |
45 | #error KERNEL_RAM_VADDR must start at 0xXXXX8000 | 38 | #error KERNEL_RAM_VADDR must start at 0xXXXX8000 |
46 | #endif | 39 | #endif |
@@ -48,8 +41,8 @@ | |||
48 | .globl swapper_pg_dir | 41 | .globl swapper_pg_dir |
49 | .equ swapper_pg_dir, KERNEL_RAM_VADDR - 0x4000 | 42 | .equ swapper_pg_dir, KERNEL_RAM_VADDR - 0x4000 |
50 | 43 | ||
51 | .macro pgtbl, rd | 44 | .macro pgtbl, rd, phys |
52 | ldr \rd, =(KERNEL_RAM_PADDR - 0x4000) | 45 | add \rd, \phys, #TEXT_OFFSET - 0x4000 |
53 | .endm | 46 | .endm |
54 | 47 | ||
55 | #ifdef CONFIG_XIP_KERNEL | 48 | #ifdef CONFIG_XIP_KERNEL |
@@ -88,14 +81,26 @@ ENTRY(stext) | |||
88 | THUMB( it eq ) @ force fixup-able long branch encoding | 81 | THUMB( it eq ) @ force fixup-able long branch encoding |
89 | beq __error_p @ yes, error 'p' | 82 | beq __error_p @ yes, error 'p' |
90 | 83 | ||
84 | #ifndef CONFIG_XIP_KERNEL | ||
85 | adr r3, 2f | ||
86 | ldmia r3, {r4, r8} | ||
87 | sub r4, r3, r4 @ (PHYS_OFFSET - PAGE_OFFSET) | ||
88 | add r8, r8, r4 @ PHYS_OFFSET | ||
89 | #else | ||
90 | ldr r8, =PLAT_PHYS_OFFSET | ||
91 | #endif | ||
92 | |||
91 | /* | 93 | /* |
92 | * r1 = machine no, r2 = atags, | 94 | * r1 = machine no, r2 = atags, |
93 | * r9 = cpuid, r10 = procinfo | 95 | * r8 = phys_offset, r9 = cpuid, r10 = procinfo |
94 | */ | 96 | */ |
95 | bl __vet_atags | 97 | bl __vet_atags |
96 | #ifdef CONFIG_SMP_ON_UP | 98 | #ifdef CONFIG_SMP_ON_UP |
97 | bl __fixup_smp | 99 | bl __fixup_smp |
98 | #endif | 100 | #endif |
101 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT | ||
102 | bl __fixup_pv_table | ||
103 | #endif | ||
99 | bl __create_page_tables | 104 | bl __create_page_tables |
100 | 105 | ||
101 | /* | 106 | /* |
@@ -114,21 +119,24 @@ ENTRY(stext) | |||
114 | 1: b __enable_mmu | 119 | 1: b __enable_mmu |
115 | ENDPROC(stext) | 120 | ENDPROC(stext) |
116 | .ltorg | 121 | .ltorg |
122 | #ifndef CONFIG_XIP_KERNEL | ||
123 | 2: .long . | ||
124 | .long PAGE_OFFSET | ||
125 | #endif | ||
117 | 126 | ||
118 | /* | 127 | /* |
119 | * Setup the initial page tables. We only setup the barest | 128 | * Setup the initial page tables. We only setup the barest |
120 | * amount which are required to get the kernel running, which | 129 | * amount which are required to get the kernel running, which |
121 | * generally means mapping in the kernel code. | 130 | * generally means mapping in the kernel code. |
122 | * | 131 | * |
123 | * r9 = cpuid | 132 | * r8 = phys_offset, r9 = cpuid, r10 = procinfo |
124 | * r10 = procinfo | ||
125 | * | 133 | * |
126 | * Returns: | 134 | * Returns: |
127 | * r0, r3, r5-r7 corrupted | 135 | * r0, r3, r5-r7 corrupted |
128 | * r4 = physical page table address | 136 | * r4 = physical page table address |
129 | */ | 137 | */ |
130 | __create_page_tables: | 138 | __create_page_tables: |
131 | pgtbl r4 @ page table address | 139 | pgtbl r4, r8 @ page table address |
132 | 140 | ||
133 | /* | 141 | /* |
134 | * Clear the 16K level 1 swapper page table | 142 | * Clear the 16K level 1 swapper page table |
@@ -184,10 +192,8 @@ __create_page_tables: | |||
184 | /* | 192 | /* |
185 | * Map some ram to cover our .data and .bss areas. | 193 | * Map some ram to cover our .data and .bss areas. |
186 | */ | 194 | */ |
187 | orr r3, r7, #(KERNEL_RAM_PADDR & 0xff000000) | 195 | add r3, r8, #TEXT_OFFSET |
188 | .if (KERNEL_RAM_PADDR & 0x00f00000) | 196 | orr r3, r3, r7 |
189 | orr r3, r3, #(KERNEL_RAM_PADDR & 0x00f00000) | ||
190 | .endif | ||
191 | add r0, r4, #(KERNEL_RAM_VADDR & 0xff000000) >> 18 | 197 | add r0, r4, #(KERNEL_RAM_VADDR & 0xff000000) >> 18 |
192 | str r3, [r0, #(KERNEL_RAM_VADDR & 0x00f00000) >> 18]! | 198 | str r3, [r0, #(KERNEL_RAM_VADDR & 0x00f00000) >> 18]! |
193 | ldr r6, =(_end - 1) | 199 | ldr r6, =(_end - 1) |
@@ -200,14 +206,17 @@ __create_page_tables: | |||
200 | #endif | 206 | #endif |
201 | 207 | ||
202 | /* | 208 | /* |
203 | * Then map first 1MB of ram in case it contains our boot params. | 209 | * Then map boot params address in r2 or |
210 | * the first 1MB of ram if boot params address is not specified. | ||
204 | */ | 211 | */ |
205 | add r0, r4, #PAGE_OFFSET >> 18 | 212 | mov r0, r2, lsr #20 |
206 | orr r6, r7, #(PHYS_OFFSET & 0xff000000) | 213 | movs r0, r0, lsl #20 |
207 | .if (PHYS_OFFSET & 0x00f00000) | 214 | moveq r0, r8 |
208 | orr r6, r6, #(PHYS_OFFSET & 0x00f00000) | 215 | sub r3, r0, r8 |
209 | .endif | 216 | add r3, r3, #PAGE_OFFSET |
210 | str r6, [r0] | 217 | add r3, r4, r3, lsr #18 |
218 | orr r6, r7, r0 | ||
219 | str r6, [r3] | ||
211 | 220 | ||
212 | #ifdef CONFIG_DEBUG_LL | 221 | #ifdef CONFIG_DEBUG_LL |
213 | #ifndef CONFIG_DEBUG_ICEDCC | 222 | #ifndef CONFIG_DEBUG_ICEDCC |
@@ -452,4 +461,129 @@ ENTRY(fixup_smp) | |||
452 | ldmfd sp!, {r4 - r6, pc} | 461 | ldmfd sp!, {r4 - r6, pc} |
453 | ENDPROC(fixup_smp) | 462 | ENDPROC(fixup_smp) |
454 | 463 | ||
464 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT | ||
465 | |||
466 | /* __fixup_pv_table - patch the stub instructions with the delta between | ||
467 | * PHYS_OFFSET and PAGE_OFFSET, which is assumed to be 16MiB aligned and | ||
468 | * can be expressed by an immediate shifter operand. The stub instruction | ||
469 | * has a form of '(add|sub) rd, rn, #imm'. | ||
470 | */ | ||
471 | __HEAD | ||
472 | __fixup_pv_table: | ||
473 | adr r0, 1f | ||
474 | ldmia r0, {r3-r5, r7} | ||
475 | sub r3, r0, r3 @ PHYS_OFFSET - PAGE_OFFSET | ||
476 | add r4, r4, r3 @ adjust table start address | ||
477 | add r5, r5, r3 @ adjust table end address | ||
478 | add r7, r7, r3 @ adjust __pv_phys_offset address | ||
479 | str r8, [r7] @ save computed PHYS_OFFSET to __pv_phys_offset | ||
480 | #ifndef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT | ||
481 | mov r6, r3, lsr #24 @ constant for add/sub instructions | ||
482 | teq r3, r6, lsl #24 @ must be 16MiB aligned | ||
483 | #else | ||
484 | mov r6, r3, lsr #16 @ constant for add/sub instructions | ||
485 | teq r3, r6, lsl #16 @ must be 64kiB aligned | ||
486 | #endif | ||
487 | THUMB( it ne @ cross section branch ) | ||
488 | bne __error | ||
489 | str r6, [r7, #4] @ save to __pv_offset | ||
490 | b __fixup_a_pv_table | ||
491 | ENDPROC(__fixup_pv_table) | ||
492 | |||
493 | .align | ||
494 | 1: .long . | ||
495 | .long __pv_table_begin | ||
496 | .long __pv_table_end | ||
497 | 2: .long __pv_phys_offset | ||
498 | |||
499 | .text | ||
500 | __fixup_a_pv_table: | ||
501 | #ifdef CONFIG_THUMB2_KERNEL | ||
502 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT | ||
503 | lsls r0, r6, #24 | ||
504 | lsr r6, #8 | ||
505 | beq 1f | ||
506 | clz r7, r0 | ||
507 | lsr r0, #24 | ||
508 | lsl r0, r7 | ||
509 | bic r0, 0x0080 | ||
510 | lsrs r7, #1 | ||
511 | orrcs r0, #0x0080 | ||
512 | orr r0, r0, r7, lsl #12 | ||
513 | #endif | ||
514 | 1: lsls r6, #24 | ||
515 | beq 4f | ||
516 | clz r7, r6 | ||
517 | lsr r6, #24 | ||
518 | lsl r6, r7 | ||
519 | bic r6, #0x0080 | ||
520 | lsrs r7, #1 | ||
521 | orrcs r6, #0x0080 | ||
522 | orr r6, r6, r7, lsl #12 | ||
523 | orr r6, #0x4000 | ||
524 | b 4f | ||
525 | 2: @ at this point the C flag is always clear | ||
526 | add r7, r3 | ||
527 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT | ||
528 | ldrh ip, [r7] | ||
529 | tst ip, 0x0400 @ the i bit tells us LS or MS byte | ||
530 | beq 3f | ||
531 | cmp r0, #0 @ set C flag, and ... | ||
532 | biceq ip, 0x0400 @ immediate zero value has a special encoding | ||
533 | streqh ip, [r7] @ that requires the i bit cleared | ||
534 | #endif | ||
535 | 3: ldrh ip, [r7, #2] | ||
536 | and ip, 0x8f00 | ||
537 | orrcc ip, r6 @ mask in offset bits 31-24 | ||
538 | orrcs ip, r0 @ mask in offset bits 23-16 | ||
539 | strh ip, [r7, #2] | ||
540 | 4: cmp r4, r5 | ||
541 | ldrcc r7, [r4], #4 @ use branch for delay slot | ||
542 | bcc 2b | ||
543 | bx lr | ||
544 | #else | ||
545 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT | ||
546 | and r0, r6, #255 @ offset bits 23-16 | ||
547 | mov r6, r6, lsr #8 @ offset bits 31-24 | ||
548 | #else | ||
549 | mov r0, #0 @ just in case... | ||
550 | #endif | ||
551 | b 3f | ||
552 | 2: ldr ip, [r7, r3] | ||
553 | bic ip, ip, #0x000000ff | ||
554 | tst ip, #0x400 @ rotate shift tells us LS or MS byte | ||
555 | orrne ip, ip, r6 @ mask in offset bits 31-24 | ||
556 | orreq ip, ip, r0 @ mask in offset bits 23-16 | ||
557 | str ip, [r7, r3] | ||
558 | 3: cmp r4, r5 | ||
559 | ldrcc r7, [r4], #4 @ use branch for delay slot | ||
560 | bcc 2b | ||
561 | mov pc, lr | ||
562 | #endif | ||
563 | ENDPROC(__fixup_a_pv_table) | ||
564 | |||
565 | ENTRY(fixup_pv_table) | ||
566 | stmfd sp!, {r4 - r7, lr} | ||
567 | ldr r2, 2f @ get address of __pv_phys_offset | ||
568 | mov r3, #0 @ no offset | ||
569 | mov r4, r0 @ r0 = table start | ||
570 | add r5, r0, r1 @ r1 = table size | ||
571 | ldr r6, [r2, #4] @ get __pv_offset | ||
572 | bl __fixup_a_pv_table | ||
573 | ldmfd sp!, {r4 - r7, pc} | ||
574 | ENDPROC(fixup_pv_table) | ||
575 | |||
576 | .align | ||
577 | 2: .long __pv_phys_offset | ||
578 | |||
579 | .data | ||
580 | .globl __pv_phys_offset | ||
581 | .type __pv_phys_offset, %object | ||
582 | __pv_phys_offset: | ||
583 | .long 0 | ||
584 | .size __pv_phys_offset, . - __pv_phys_offset | ||
585 | __pv_offset: | ||
586 | .long 0 | ||
587 | #endif | ||
588 | |||
455 | #include "head-common.S" | 589 | #include "head-common.S" |
diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c index 6fcf22cf385c..fee7c36349eb 100644 --- a/arch/arm/kernel/module.c +++ b/arch/arm/kernel/module.c | |||
@@ -283,12 +283,13 @@ static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr, | |||
283 | return NULL; | 283 | return NULL; |
284 | } | 284 | } |
285 | 285 | ||
286 | extern void fixup_pv_table(const void *, unsigned long); | ||
286 | extern void fixup_smp(const void *, unsigned long); | 287 | extern void fixup_smp(const void *, unsigned long); |
287 | 288 | ||
288 | int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, | 289 | int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, |
289 | struct module *mod) | 290 | struct module *mod) |
290 | { | 291 | { |
291 | const Elf_Shdr * __maybe_unused s = NULL; | 292 | const Elf_Shdr *s = NULL; |
292 | #ifdef CONFIG_ARM_UNWIND | 293 | #ifdef CONFIG_ARM_UNWIND |
293 | const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; | 294 | const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; |
294 | const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; | 295 | const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; |
@@ -333,6 +334,11 @@ int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, | |||
333 | maps[i].txt_sec->sh_addr, | 334 | maps[i].txt_sec->sh_addr, |
334 | maps[i].txt_sec->sh_size); | 335 | maps[i].txt_sec->sh_size); |
335 | #endif | 336 | #endif |
337 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT | ||
338 | s = find_mod_section(hdr, sechdrs, ".pv_table"); | ||
339 | if (s) | ||
340 | fixup_pv_table((void *)s->sh_addr, s->sh_size); | ||
341 | #endif | ||
336 | s = find_mod_section(hdr, sechdrs, ".alt.smp.init"); | 342 | s = find_mod_section(hdr, sechdrs, ".alt.smp.init"); |
337 | if (s && !is_smp()) | 343 | if (s && !is_smp()) |
338 | fixup_smp((void *)s->sh_addr, s->sh_size); | 344 | fixup_smp((void *)s->sh_addr, s->sh_size); |
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index db2382853450..d1da92174277 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -325,28 +325,6 @@ static void __init early_print(const char *str, ...) | |||
325 | printk("%s", buf); | 325 | printk("%s", buf); |
326 | } | 326 | } |
327 | 327 | ||
328 | static struct machine_desc * __init lookup_machine_type(unsigned int type) | ||
329 | { | ||
330 | extern struct machine_desc __arch_info_begin[], __arch_info_end[]; | ||
331 | struct machine_desc *p; | ||
332 | |||
333 | for (p = __arch_info_begin; p < __arch_info_end; p++) | ||
334 | if (type == p->nr) | ||
335 | return p; | ||
336 | |||
337 | early_print("\n" | ||
338 | "Error: unrecognized/unsupported machine ID (r1 = 0x%08x).\n\n" | ||
339 | "Available machine support:\n\nID (hex)\tNAME\n", type); | ||
340 | |||
341 | for (p = __arch_info_begin; p < __arch_info_end; p++) | ||
342 | early_print("%08x\t%s\n", p->nr, p->name); | ||
343 | |||
344 | early_print("\nPlease check your kernel config and/or bootloader.\n"); | ||
345 | |||
346 | while (true) | ||
347 | /* can't use cpu_relax() here as it may require MMU setup */; | ||
348 | } | ||
349 | |||
350 | static void __init feat_v6_fixup(void) | 328 | static void __init feat_v6_fixup(void) |
351 | { | 329 | { |
352 | int id = read_cpuid_id(); | 330 | int id = read_cpuid_id(); |
@@ -463,21 +441,29 @@ void cpu_init(void) | |||
463 | 441 | ||
464 | static struct machine_desc * __init setup_machine(unsigned int nr) | 442 | static struct machine_desc * __init setup_machine(unsigned int nr) |
465 | { | 443 | { |
466 | struct machine_desc *list; | 444 | extern struct machine_desc __arch_info_begin[], __arch_info_end[]; |
445 | struct machine_desc *p; | ||
467 | 446 | ||
468 | /* | 447 | /* |
469 | * locate machine in the list of supported machines. | 448 | * locate machine in the list of supported machines. |
470 | */ | 449 | */ |
471 | list = lookup_machine_type(nr); | 450 | for (p = __arch_info_begin; p < __arch_info_end; p++) |
472 | if (!list) { | 451 | if (nr == p->nr) { |
473 | printk("Machine configuration botched (nr %d), unable " | 452 | printk("Machine: %s\n", p->name); |
474 | "to continue.\n", nr); | 453 | return p; |
475 | while (1); | 454 | } |
476 | } | ||
477 | 455 | ||
478 | printk("Machine: %s\n", list->name); | 456 | early_print("\n" |
457 | "Error: unrecognized/unsupported machine ID (r1 = 0x%08x).\n\n" | ||
458 | "Available machine support:\n\nID (hex)\tNAME\n", nr); | ||
479 | 459 | ||
480 | return list; | 460 | for (p = __arch_info_begin; p < __arch_info_end; p++) |
461 | early_print("%08x\t%s\n", p->nr, p->name); | ||
462 | |||
463 | early_print("\nPlease check your kernel config and/or bootloader.\n"); | ||
464 | |||
465 | while (true) | ||
466 | /* can't use cpu_relax() here as it may require MMU setup */; | ||
481 | } | 467 | } |
482 | 468 | ||
483 | static int __init arm_add_memory(unsigned long start, unsigned long size) | 469 | static int __init arm_add_memory(unsigned long start, unsigned long size) |
@@ -740,7 +726,7 @@ static struct init_tags { | |||
740 | { tag_size(tag_core), ATAG_CORE }, | 726 | { tag_size(tag_core), ATAG_CORE }, |
741 | { 1, PAGE_SIZE, 0xff }, | 727 | { 1, PAGE_SIZE, 0xff }, |
742 | { tag_size(tag_mem32), ATAG_MEM }, | 728 | { tag_size(tag_mem32), ATAG_MEM }, |
743 | { MEM_SIZE, PHYS_OFFSET }, | 729 | { MEM_SIZE }, |
744 | { 0, ATAG_NONE } | 730 | { 0, ATAG_NONE } |
745 | }; | 731 | }; |
746 | 732 | ||
@@ -839,6 +825,8 @@ void __init setup_arch(char **cmdline_p) | |||
839 | struct machine_desc *mdesc; | 825 | struct machine_desc *mdesc; |
840 | char *from = default_command_line; | 826 | char *from = default_command_line; |
841 | 827 | ||
828 | init_tags.mem.start = PHYS_OFFSET; | ||
829 | |||
842 | unwind_init(); | 830 | unwind_init(); |
843 | 831 | ||
844 | setup_processor(); | 832 | setup_processor(); |
@@ -851,8 +839,25 @@ void __init setup_arch(char **cmdline_p) | |||
851 | 839 | ||
852 | if (__atags_pointer) | 840 | if (__atags_pointer) |
853 | tags = phys_to_virt(__atags_pointer); | 841 | tags = phys_to_virt(__atags_pointer); |
854 | else if (mdesc->boot_params) | 842 | else if (mdesc->boot_params) { |
855 | tags = phys_to_virt(mdesc->boot_params); | 843 | #ifdef CONFIG_MMU |
844 | /* | ||
845 | * We still are executing with a minimal MMU mapping created | ||
846 | * with the presumption that the machine default for this | ||
847 | * is located in the first MB of RAM. Anything else will | ||
848 | * fault and silently hang the kernel at this point. | ||
849 | */ | ||
850 | if (mdesc->boot_params < PHYS_OFFSET || | ||
851 | mdesc->boot_params >= PHYS_OFFSET + SZ_1M) { | ||
852 | printk(KERN_WARNING | ||
853 | "Default boot params at physical 0x%08lx out of reach\n", | ||
854 | mdesc->boot_params); | ||
855 | } else | ||
856 | #endif | ||
857 | { | ||
858 | tags = phys_to_virt(mdesc->boot_params); | ||
859 | } | ||
860 | } | ||
856 | 861 | ||
857 | #if defined(CONFIG_DEPRECATED_PARAM_STRUCT) | 862 | #if defined(CONFIG_DEPRECATED_PARAM_STRUCT) |
858 | /* | 863 | /* |
diff --git a/arch/arm/kernel/tcm.c b/arch/arm/kernel/tcm.c index 26685c2f7a49..f5cf660eefcc 100644 --- a/arch/arm/kernel/tcm.c +++ b/arch/arm/kernel/tcm.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/string.h> /* memcpy */ | 15 | #include <linux/string.h> /* memcpy */ |
16 | #include <asm/cputype.h> | 16 | #include <asm/cputype.h> |
17 | #include <asm/mach/map.h> | 17 | #include <asm/mach/map.h> |
18 | #include <mach/memory.h> | 18 | #include <asm/memory.h> |
19 | #include "tcm.h" | 19 | #include "tcm.h" |
20 | 20 | ||
21 | static struct gen_pool *tcm_pool; | 21 | static struct gen_pool *tcm_pool; |
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index 61462790757f..dfbb377e251d 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S | |||
@@ -64,6 +64,10 @@ SECTIONS | |||
64 | __smpalt_end = .; | 64 | __smpalt_end = .; |
65 | #endif | 65 | #endif |
66 | 66 | ||
67 | __pv_table_begin = .; | ||
68 | *(.pv_table) | ||
69 | __pv_table_end = .; | ||
70 | |||
67 | INIT_SETUP(16) | 71 | INIT_SETUP(16) |
68 | 72 | ||
69 | INIT_CALLS | 73 | INIT_CALLS |
diff --git a/arch/arm/mach-aaec2000/include/mach/memory.h b/arch/arm/mach-aaec2000/include/mach/memory.h index 4f93c567a35a..4a10bf0bd369 100644 --- a/arch/arm/mach-aaec2000/include/mach/memory.h +++ b/arch/arm/mach-aaec2000/include/mach/memory.h | |||
@@ -12,6 +12,6 @@ | |||
12 | #define __ASM_ARCH_MEMORY_H | 12 | #define __ASM_ARCH_MEMORY_H |
13 | 13 | ||
14 | 14 | ||
15 | #define PHYS_OFFSET UL(0xf0000000) | 15 | #define PLAT_PHYS_OFFSET UL(0xf0000000) |
16 | 16 | ||
17 | #endif /* __ASM_ARCH_MEMORY_H */ | 17 | #endif /* __ASM_ARCH_MEMORY_H */ |
diff --git a/arch/arm/mach-at91/include/mach/memory.h b/arch/arm/mach-at91/include/mach/memory.h index 14f4ef4b6a9e..c2cfe5040642 100644 --- a/arch/arm/mach-at91/include/mach/memory.h +++ b/arch/arm/mach-at91/include/mach/memory.h | |||
@@ -23,6 +23,6 @@ | |||
23 | 23 | ||
24 | #include <mach/hardware.h> | 24 | #include <mach/hardware.h> |
25 | 25 | ||
26 | #define PHYS_OFFSET (AT91_SDRAM_BASE) | 26 | #define PLAT_PHYS_OFFSET (AT91_SDRAM_BASE) |
27 | 27 | ||
28 | #endif | 28 | #endif |
diff --git a/arch/arm/mach-bcmring/include/mach/hardware.h b/arch/arm/mach-bcmring/include/mach/hardware.h index 447eb340c611..8bf3564fba50 100644 --- a/arch/arm/mach-bcmring/include/mach/hardware.h +++ b/arch/arm/mach-bcmring/include/mach/hardware.h | |||
@@ -31,7 +31,7 @@ | |||
31 | * *_SIZE is the size of the region | 31 | * *_SIZE is the size of the region |
32 | * *_BASE is the virtual address | 32 | * *_BASE is the virtual address |
33 | */ | 33 | */ |
34 | #define RAM_START PHYS_OFFSET | 34 | #define RAM_START PLAT_PHYS_OFFSET |
35 | 35 | ||
36 | #define RAM_SIZE (CFG_GLOBAL_RAM_SIZE-CFG_GLOBAL_RAM_SIZE_RESERVED) | 36 | #define RAM_SIZE (CFG_GLOBAL_RAM_SIZE-CFG_GLOBAL_RAM_SIZE_RESERVED) |
37 | #define RAM_BASE PAGE_OFFSET | 37 | #define RAM_BASE PAGE_OFFSET |
diff --git a/arch/arm/mach-bcmring/include/mach/memory.h b/arch/arm/mach-bcmring/include/mach/memory.h index 114f942bb4f3..15162e4c75f9 100644 --- a/arch/arm/mach-bcmring/include/mach/memory.h +++ b/arch/arm/mach-bcmring/include/mach/memory.h | |||
@@ -23,7 +23,7 @@ | |||
23 | * files. Use virt_to_phys/phys_to_virt/__pa/__va instead. | 23 | * files. Use virt_to_phys/phys_to_virt/__pa/__va instead. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #define PHYS_OFFSET CFG_GLOBAL_RAM_BASE | 26 | #define PLAT_PHYS_OFFSET CFG_GLOBAL_RAM_BASE |
27 | 27 | ||
28 | /* | 28 | /* |
29 | * Maximum DMA memory allowed is 14M | 29 | * Maximum DMA memory allowed is 14M |
diff --git a/arch/arm/mach-clps711x/include/mach/memory.h b/arch/arm/mach-clps711x/include/mach/memory.h index f45c8e892cb5..3a032a67725c 100644 --- a/arch/arm/mach-clps711x/include/mach/memory.h +++ b/arch/arm/mach-clps711x/include/mach/memory.h | |||
@@ -23,7 +23,7 @@ | |||
23 | /* | 23 | /* |
24 | * Physical DRAM offset. | 24 | * Physical DRAM offset. |
25 | */ | 25 | */ |
26 | #define PHYS_OFFSET UL(0xc0000000) | 26 | #define PLAT_PHYS_OFFSET UL(0xc0000000) |
27 | 27 | ||
28 | #if !defined(CONFIG_ARCH_CDB89712) && !defined (CONFIG_ARCH_AUTCPU12) | 28 | #if !defined(CONFIG_ARCH_CDB89712) && !defined (CONFIG_ARCH_AUTCPU12) |
29 | 29 | ||
diff --git a/arch/arm/mach-cns3xxx/include/mach/memory.h b/arch/arm/mach-cns3xxx/include/mach/memory.h index 3b6b769b7a27..dc16c5c5d86b 100644 --- a/arch/arm/mach-cns3xxx/include/mach/memory.h +++ b/arch/arm/mach-cns3xxx/include/mach/memory.h | |||
@@ -13,7 +13,7 @@ | |||
13 | /* | 13 | /* |
14 | * Physical DRAM offset. | 14 | * Physical DRAM offset. |
15 | */ | 15 | */ |
16 | #define PHYS_OFFSET UL(0x00000000) | 16 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
17 | 17 | ||
18 | #define __phys_to_bus(x) ((x) + PHYS_OFFSET) | 18 | #define __phys_to_bus(x) ((x) + PHYS_OFFSET) |
19 | #define __bus_to_phys(x) ((x) - PHYS_OFFSET) | 19 | #define __bus_to_phys(x) ((x) - PHYS_OFFSET) |
diff --git a/arch/arm/mach-davinci/include/mach/memory.h b/arch/arm/mach-davinci/include/mach/memory.h index 22eb97c1c30b..78822723f382 100644 --- a/arch/arm/mach-davinci/include/mach/memory.h +++ b/arch/arm/mach-davinci/include/mach/memory.h | |||
@@ -26,9 +26,9 @@ | |||
26 | #if defined(CONFIG_ARCH_DAVINCI_DA8XX) && defined(CONFIG_ARCH_DAVINCI_DMx) | 26 | #if defined(CONFIG_ARCH_DAVINCI_DA8XX) && defined(CONFIG_ARCH_DAVINCI_DMx) |
27 | #error Cannot enable DaVinci and DA8XX platforms concurrently | 27 | #error Cannot enable DaVinci and DA8XX platforms concurrently |
28 | #elif defined(CONFIG_ARCH_DAVINCI_DA8XX) | 28 | #elif defined(CONFIG_ARCH_DAVINCI_DA8XX) |
29 | #define PHYS_OFFSET DA8XX_DDR_BASE | 29 | #define PLAT_PHYS_OFFSET DA8XX_DDR_BASE |
30 | #else | 30 | #else |
31 | #define PHYS_OFFSET DAVINCI_DDR_BASE | 31 | #define PLAT_PHYS_OFFSET DAVINCI_DDR_BASE |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #define DDR2_SDRCR_OFFSET 0xc | 34 | #define DDR2_SDRCR_OFFSET 0xc |
diff --git a/arch/arm/mach-dove/include/mach/memory.h b/arch/arm/mach-dove/include/mach/memory.h index d66872074946..bbc93fee6c75 100644 --- a/arch/arm/mach-dove/include/mach/memory.h +++ b/arch/arm/mach-dove/include/mach/memory.h | |||
@@ -5,6 +5,6 @@ | |||
5 | #ifndef __ASM_ARCH_MEMORY_H | 5 | #ifndef __ASM_ARCH_MEMORY_H |
6 | #define __ASM_ARCH_MEMORY_H | 6 | #define __ASM_ARCH_MEMORY_H |
7 | 7 | ||
8 | #define PHYS_OFFSET UL(0x00000000) | 8 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
9 | 9 | ||
10 | #endif | 10 | #endif |
diff --git a/arch/arm/mach-ebsa110/include/mach/memory.h b/arch/arm/mach-ebsa110/include/mach/memory.h index 0ca66d080c69..8e49066ad850 100644 --- a/arch/arm/mach-ebsa110/include/mach/memory.h +++ b/arch/arm/mach-ebsa110/include/mach/memory.h | |||
@@ -19,7 +19,7 @@ | |||
19 | /* | 19 | /* |
20 | * Physical DRAM offset. | 20 | * Physical DRAM offset. |
21 | */ | 21 | */ |
22 | #define PHYS_OFFSET UL(0x00000000) | 22 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * Cache flushing area - SRAM | 25 | * Cache flushing area - SRAM |
diff --git a/arch/arm/mach-ep93xx/include/mach/memory.h b/arch/arm/mach-ep93xx/include/mach/memory.h index 554064e90307..c9400cf0051c 100644 --- a/arch/arm/mach-ep93xx/include/mach/memory.h +++ b/arch/arm/mach-ep93xx/include/mach/memory.h | |||
@@ -6,15 +6,15 @@ | |||
6 | #define __ASM_ARCH_MEMORY_H | 6 | #define __ASM_ARCH_MEMORY_H |
7 | 7 | ||
8 | #if defined(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET) | 8 | #if defined(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET) |
9 | #define PHYS_OFFSET UL(0x00000000) | 9 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
10 | #elif defined(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) | 10 | #elif defined(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) |
11 | #define PHYS_OFFSET UL(0xc0000000) | 11 | #define PLAT_PHYS_OFFSET UL(0xc0000000) |
12 | #elif defined(CONFIG_EP93XX_SDCE1_PHYS_OFFSET) | 12 | #elif defined(CONFIG_EP93XX_SDCE1_PHYS_OFFSET) |
13 | #define PHYS_OFFSET UL(0xd0000000) | 13 | #define PLAT_PHYS_OFFSET UL(0xd0000000) |
14 | #elif defined(CONFIG_EP93XX_SDCE2_PHYS_OFFSET) | 14 | #elif defined(CONFIG_EP93XX_SDCE2_PHYS_OFFSET) |
15 | #define PHYS_OFFSET UL(0xe0000000) | 15 | #define PLAT_PHYS_OFFSET UL(0xe0000000) |
16 | #elif defined(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET) | 16 | #elif defined(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET) |
17 | #define PHYS_OFFSET UL(0xf0000000) | 17 | #define PLAT_PHYS_OFFSET UL(0xf0000000) |
18 | #else | 18 | #else |
19 | #error "Kconfig bug: No EP93xx PHYS_OFFSET set" | 19 | #error "Kconfig bug: No EP93xx PHYS_OFFSET set" |
20 | #endif | 20 | #endif |
diff --git a/arch/arm/mach-footbridge/include/mach/memory.h b/arch/arm/mach-footbridge/include/mach/memory.h index 8d64f4574087..5c6df377f969 100644 --- a/arch/arm/mach-footbridge/include/mach/memory.h +++ b/arch/arm/mach-footbridge/include/mach/memory.h | |||
@@ -62,7 +62,7 @@ extern unsigned long __bus_to_pfn(unsigned long); | |||
62 | /* | 62 | /* |
63 | * Physical DRAM offset. | 63 | * Physical DRAM offset. |
64 | */ | 64 | */ |
65 | #define PHYS_OFFSET UL(0x00000000) | 65 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
66 | 66 | ||
67 | #define FLUSH_BASE_PHYS 0x50000000 | 67 | #define FLUSH_BASE_PHYS 0x50000000 |
68 | 68 | ||
diff --git a/arch/arm/mach-gemini/include/mach/memory.h b/arch/arm/mach-gemini/include/mach/memory.h index 2d14d5bf1f9f..a50915f764d8 100644 --- a/arch/arm/mach-gemini/include/mach/memory.h +++ b/arch/arm/mach-gemini/include/mach/memory.h | |||
@@ -11,9 +11,9 @@ | |||
11 | #define __MACH_MEMORY_H | 11 | #define __MACH_MEMORY_H |
12 | 12 | ||
13 | #ifdef CONFIG_GEMINI_MEM_SWAP | 13 | #ifdef CONFIG_GEMINI_MEM_SWAP |
14 | # define PHYS_OFFSET UL(0x00000000) | 14 | # define PLAT_PHYS_OFFSET UL(0x00000000) |
15 | #else | 15 | #else |
16 | # define PHYS_OFFSET UL(0x10000000) | 16 | # define PLAT_PHYS_OFFSET UL(0x10000000) |
17 | #endif | 17 | #endif |
18 | 18 | ||
19 | #endif /* __MACH_MEMORY_H */ | 19 | #endif /* __MACH_MEMORY_H */ |
diff --git a/arch/arm/mach-h720x/include/mach/memory.h b/arch/arm/mach-h720x/include/mach/memory.h index ef4c1e26f18e..9d3687651462 100644 --- a/arch/arm/mach-h720x/include/mach/memory.h +++ b/arch/arm/mach-h720x/include/mach/memory.h | |||
@@ -7,7 +7,7 @@ | |||
7 | #ifndef __ASM_ARCH_MEMORY_H | 7 | #ifndef __ASM_ARCH_MEMORY_H |
8 | #define __ASM_ARCH_MEMORY_H | 8 | #define __ASM_ARCH_MEMORY_H |
9 | 9 | ||
10 | #define PHYS_OFFSET UL(0x40000000) | 10 | #define PLAT_PHYS_OFFSET UL(0x40000000) |
11 | /* | 11 | /* |
12 | * This is the maximum DMA address that can be DMAd to. | 12 | * This is the maximum DMA address that can be DMAd to. |
13 | * There should not be more than (0xd0000000 - 0xc0000000) | 13 | * There should not be more than (0xd0000000 - 0xc0000000) |
diff --git a/arch/arm/mach-integrator/include/mach/memory.h b/arch/arm/mach-integrator/include/mach/memory.h index 991f24d2c115..334d5e271889 100644 --- a/arch/arm/mach-integrator/include/mach/memory.h +++ b/arch/arm/mach-integrator/include/mach/memory.h | |||
@@ -23,7 +23,7 @@ | |||
23 | /* | 23 | /* |
24 | * Physical DRAM offset. | 24 | * Physical DRAM offset. |
25 | */ | 25 | */ |
26 | #define PHYS_OFFSET UL(0x00000000) | 26 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
27 | 27 | ||
28 | #define BUS_OFFSET UL(0x80000000) | 28 | #define BUS_OFFSET UL(0x80000000) |
29 | #define __virt_to_bus(x) ((x) - PAGE_OFFSET + BUS_OFFSET) | 29 | #define __virt_to_bus(x) ((x) - PAGE_OFFSET + BUS_OFFSET) |
diff --git a/arch/arm/mach-iop13xx/include/mach/memory.h b/arch/arm/mach-iop13xx/include/mach/memory.h index 3ad455318868..1afa99ef97fa 100644 --- a/arch/arm/mach-iop13xx/include/mach/memory.h +++ b/arch/arm/mach-iop13xx/include/mach/memory.h | |||
@@ -6,7 +6,7 @@ | |||
6 | /* | 6 | /* |
7 | * Physical DRAM offset. | 7 | * Physical DRAM offset. |
8 | */ | 8 | */ |
9 | #define PHYS_OFFSET UL(0x00000000) | 9 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
10 | 10 | ||
11 | #ifndef __ASSEMBLY__ | 11 | #ifndef __ASSEMBLY__ |
12 | 12 | ||
diff --git a/arch/arm/mach-iop32x/include/mach/memory.h b/arch/arm/mach-iop32x/include/mach/memory.h index c30f6450ad50..169cc239f76c 100644 --- a/arch/arm/mach-iop32x/include/mach/memory.h +++ b/arch/arm/mach-iop32x/include/mach/memory.h | |||
@@ -8,6 +8,6 @@ | |||
8 | /* | 8 | /* |
9 | * Physical DRAM offset. | 9 | * Physical DRAM offset. |
10 | */ | 10 | */ |
11 | #define PHYS_OFFSET UL(0xa0000000) | 11 | #define PLAT_PHYS_OFFSET UL(0xa0000000) |
12 | 12 | ||
13 | #endif | 13 | #endif |
diff --git a/arch/arm/mach-iop33x/include/mach/memory.h b/arch/arm/mach-iop33x/include/mach/memory.h index a30a96aa6d2d..8e1daf7006b6 100644 --- a/arch/arm/mach-iop33x/include/mach/memory.h +++ b/arch/arm/mach-iop33x/include/mach/memory.h | |||
@@ -8,6 +8,6 @@ | |||
8 | /* | 8 | /* |
9 | * Physical DRAM offset. | 9 | * Physical DRAM offset. |
10 | */ | 10 | */ |
11 | #define PHYS_OFFSET UL(0x00000000) | 11 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
12 | 12 | ||
13 | #endif | 13 | #endif |
diff --git a/arch/arm/mach-ixp2000/include/mach/memory.h b/arch/arm/mach-ixp2000/include/mach/memory.h index 98e3471be15b..5f0c4fd4076a 100644 --- a/arch/arm/mach-ixp2000/include/mach/memory.h +++ b/arch/arm/mach-ixp2000/include/mach/memory.h | |||
@@ -13,7 +13,7 @@ | |||
13 | #ifndef __ASM_ARCH_MEMORY_H | 13 | #ifndef __ASM_ARCH_MEMORY_H |
14 | #define __ASM_ARCH_MEMORY_H | 14 | #define __ASM_ARCH_MEMORY_H |
15 | 15 | ||
16 | #define PHYS_OFFSET UL(0x00000000) | 16 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
17 | 17 | ||
18 | #include <mach/ixp2000-regs.h> | 18 | #include <mach/ixp2000-regs.h> |
19 | 19 | ||
diff --git a/arch/arm/mach-ixp23xx/include/mach/memory.h b/arch/arm/mach-ixp23xx/include/mach/memory.h index 6ef65d813f16..6cf0704e946a 100644 --- a/arch/arm/mach-ixp23xx/include/mach/memory.h +++ b/arch/arm/mach-ixp23xx/include/mach/memory.h | |||
@@ -17,7 +17,7 @@ | |||
17 | /* | 17 | /* |
18 | * Physical DRAM offset. | 18 | * Physical DRAM offset. |
19 | */ | 19 | */ |
20 | #define PHYS_OFFSET (0x00000000) | 20 | #define PLAT_PHYS_OFFSET (0x00000000) |
21 | 21 | ||
22 | #define IXP23XX_PCI_SDRAM_OFFSET (*((volatile int *)IXP23XX_PCI_SDRAM_BAR) & 0xfffffff0) | 22 | #define IXP23XX_PCI_SDRAM_OFFSET (*((volatile int *)IXP23XX_PCI_SDRAM_BAR) & 0xfffffff0) |
23 | 23 | ||
diff --git a/arch/arm/mach-ixp4xx/include/mach/memory.h b/arch/arm/mach-ixp4xx/include/mach/memory.h index 0136eaa29224..6d388c9d0e20 100644 --- a/arch/arm/mach-ixp4xx/include/mach/memory.h +++ b/arch/arm/mach-ixp4xx/include/mach/memory.h | |||
@@ -12,7 +12,7 @@ | |||
12 | /* | 12 | /* |
13 | * Physical DRAM offset. | 13 | * Physical DRAM offset. |
14 | */ | 14 | */ |
15 | #define PHYS_OFFSET UL(0x00000000) | 15 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
16 | 16 | ||
17 | #if !defined(__ASSEMBLY__) && defined(CONFIG_PCI) | 17 | #if !defined(__ASSEMBLY__) && defined(CONFIG_PCI) |
18 | 18 | ||
diff --git a/arch/arm/mach-kirkwood/include/mach/memory.h b/arch/arm/mach-kirkwood/include/mach/memory.h index 45431e131465..4600b44e3ad3 100644 --- a/arch/arm/mach-kirkwood/include/mach/memory.h +++ b/arch/arm/mach-kirkwood/include/mach/memory.h | |||
@@ -5,6 +5,6 @@ | |||
5 | #ifndef __ASM_ARCH_MEMORY_H | 5 | #ifndef __ASM_ARCH_MEMORY_H |
6 | #define __ASM_ARCH_MEMORY_H | 6 | #define __ASM_ARCH_MEMORY_H |
7 | 7 | ||
8 | #define PHYS_OFFSET UL(0x00000000) | 8 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
9 | 9 | ||
10 | #endif | 10 | #endif |
diff --git a/arch/arm/mach-ks8695/include/mach/memory.h b/arch/arm/mach-ks8695/include/mach/memory.h index bace9a681adc..f7e1b9bce345 100644 --- a/arch/arm/mach-ks8695/include/mach/memory.h +++ b/arch/arm/mach-ks8695/include/mach/memory.h | |||
@@ -18,7 +18,7 @@ | |||
18 | /* | 18 | /* |
19 | * Physical SRAM offset. | 19 | * Physical SRAM offset. |
20 | */ | 20 | */ |
21 | #define PHYS_OFFSET KS8695_SDRAM_PA | 21 | #define PLAT_PHYS_OFFSET KS8695_SDRAM_PA |
22 | 22 | ||
23 | #ifndef __ASSEMBLY__ | 23 | #ifndef __ASSEMBLY__ |
24 | 24 | ||
diff --git a/arch/arm/mach-lh7a40x/include/mach/memory.h b/arch/arm/mach-lh7a40x/include/mach/memory.h index edb8f5faf5d5..f77bde80fe41 100644 --- a/arch/arm/mach-lh7a40x/include/mach/memory.h +++ b/arch/arm/mach-lh7a40x/include/mach/memory.h | |||
@@ -17,7 +17,7 @@ | |||
17 | /* | 17 | /* |
18 | * Physical DRAM offset. | 18 | * Physical DRAM offset. |
19 | */ | 19 | */ |
20 | #define PHYS_OFFSET UL(0xc0000000) | 20 | #define PLAT_PHYS_OFFSET UL(0xc0000000) |
21 | 21 | ||
22 | /* | 22 | /* |
23 | * Sparsemem version of the above | 23 | * Sparsemem version of the above |
diff --git a/arch/arm/mach-loki/include/mach/memory.h b/arch/arm/mach-loki/include/mach/memory.h index 2ed7e6e732c2..66366657a875 100644 --- a/arch/arm/mach-loki/include/mach/memory.h +++ b/arch/arm/mach-loki/include/mach/memory.h | |||
@@ -5,6 +5,6 @@ | |||
5 | #ifndef __ASM_ARCH_MEMORY_H | 5 | #ifndef __ASM_ARCH_MEMORY_H |
6 | #define __ASM_ARCH_MEMORY_H | 6 | #define __ASM_ARCH_MEMORY_H |
7 | 7 | ||
8 | #define PHYS_OFFSET UL(0x00000000) | 8 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
9 | 9 | ||
10 | #endif | 10 | #endif |
diff --git a/arch/arm/mach-lpc32xx/include/mach/memory.h b/arch/arm/mach-lpc32xx/include/mach/memory.h index 044e1acecbe6..a647dd624afa 100644 --- a/arch/arm/mach-lpc32xx/include/mach/memory.h +++ b/arch/arm/mach-lpc32xx/include/mach/memory.h | |||
@@ -22,6 +22,6 @@ | |||
22 | /* | 22 | /* |
23 | * Physical DRAM offset of bank 0 | 23 | * Physical DRAM offset of bank 0 |
24 | */ | 24 | */ |
25 | #define PHYS_OFFSET UL(0x80000000) | 25 | #define PLAT_PHYS_OFFSET UL(0x80000000) |
26 | 26 | ||
27 | #endif | 27 | #endif |
diff --git a/arch/arm/mach-mmp/include/mach/memory.h b/arch/arm/mach-mmp/include/mach/memory.h index bdb21d70714c..d68b50a2d6a0 100644 --- a/arch/arm/mach-mmp/include/mach/memory.h +++ b/arch/arm/mach-mmp/include/mach/memory.h | |||
@@ -9,6 +9,6 @@ | |||
9 | #ifndef __ASM_MACH_MEMORY_H | 9 | #ifndef __ASM_MACH_MEMORY_H |
10 | #define __ASM_MACH_MEMORY_H | 10 | #define __ASM_MACH_MEMORY_H |
11 | 11 | ||
12 | #define PHYS_OFFSET UL(0x00000000) | 12 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
13 | 13 | ||
14 | #endif /* __ASM_MACH_MEMORY_H */ | 14 | #endif /* __ASM_MACH_MEMORY_H */ |
diff --git a/arch/arm/mach-msm/board-msm7x27.c b/arch/arm/mach-msm/board-msm7x27.c index e7a76eff57d9..08fcd40a8cbd 100644 --- a/arch/arm/mach-msm/board-msm7x27.c +++ b/arch/arm/mach-msm/board-msm7x27.c | |||
@@ -132,7 +132,7 @@ static void __init msm7x2x_map_io(void) | |||
132 | MACHINE_START(MSM7X27_SURF, "QCT MSM7x27 SURF") | 132 | MACHINE_START(MSM7X27_SURF, "QCT MSM7x27 SURF") |
133 | #ifdef CONFIG_MSM_DEBUG_UART | 133 | #ifdef CONFIG_MSM_DEBUG_UART |
134 | #endif | 134 | #endif |
135 | .boot_params = PHYS_OFFSET + 0x100, | 135 | .boot_params = PLAT_PHYS_OFFSET + 0x100, |
136 | .map_io = msm7x2x_map_io, | 136 | .map_io = msm7x2x_map_io, |
137 | .init_irq = msm7x2x_init_irq, | 137 | .init_irq = msm7x2x_init_irq, |
138 | .init_machine = msm7x2x_init, | 138 | .init_machine = msm7x2x_init, |
@@ -142,7 +142,7 @@ MACHINE_END | |||
142 | MACHINE_START(MSM7X27_FFA, "QCT MSM7x27 FFA") | 142 | MACHINE_START(MSM7X27_FFA, "QCT MSM7x27 FFA") |
143 | #ifdef CONFIG_MSM_DEBUG_UART | 143 | #ifdef CONFIG_MSM_DEBUG_UART |
144 | #endif | 144 | #endif |
145 | .boot_params = PHYS_OFFSET + 0x100, | 145 | .boot_params = PLAT_PHYS_OFFSET + 0x100, |
146 | .map_io = msm7x2x_map_io, | 146 | .map_io = msm7x2x_map_io, |
147 | .init_irq = msm7x2x_init_irq, | 147 | .init_irq = msm7x2x_init_irq, |
148 | .init_machine = msm7x2x_init, | 148 | .init_machine = msm7x2x_init, |
@@ -152,7 +152,7 @@ MACHINE_END | |||
152 | MACHINE_START(MSM7X25_SURF, "QCT MSM7x25 SURF") | 152 | MACHINE_START(MSM7X25_SURF, "QCT MSM7x25 SURF") |
153 | #ifdef CONFIG_MSM_DEBUG_UART | 153 | #ifdef CONFIG_MSM_DEBUG_UART |
154 | #endif | 154 | #endif |
155 | .boot_params = PHYS_OFFSET + 0x100, | 155 | .boot_params = PLAT_PHYS_OFFSET + 0x100, |
156 | .map_io = msm7x2x_map_io, | 156 | .map_io = msm7x2x_map_io, |
157 | .init_irq = msm7x2x_init_irq, | 157 | .init_irq = msm7x2x_init_irq, |
158 | .init_machine = msm7x2x_init, | 158 | .init_machine = msm7x2x_init, |
@@ -162,7 +162,7 @@ MACHINE_END | |||
162 | MACHINE_START(MSM7X25_FFA, "QCT MSM7x25 FFA") | 162 | MACHINE_START(MSM7X25_FFA, "QCT MSM7x25 FFA") |
163 | #ifdef CONFIG_MSM_DEBUG_UART | 163 | #ifdef CONFIG_MSM_DEBUG_UART |
164 | #endif | 164 | #endif |
165 | .boot_params = PHYS_OFFSET + 0x100, | 165 | .boot_params = PLAT_PHYS_OFFSET + 0x100, |
166 | .map_io = msm7x2x_map_io, | 166 | .map_io = msm7x2x_map_io, |
167 | .init_irq = msm7x2x_init_irq, | 167 | .init_irq = msm7x2x_init_irq, |
168 | .init_machine = msm7x2x_init, | 168 | .init_machine = msm7x2x_init, |
diff --git a/arch/arm/mach-msm/board-msm7x30.c b/arch/arm/mach-msm/board-msm7x30.c index 6f3b9735e970..25db8fd71a70 100644 --- a/arch/arm/mach-msm/board-msm7x30.c +++ b/arch/arm/mach-msm/board-msm7x30.c | |||
@@ -26,11 +26,11 @@ | |||
26 | 26 | ||
27 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
28 | #include <asm/mach/arch.h> | 28 | #include <asm/mach/arch.h> |
29 | #include <asm/memory.h> | ||
29 | #include <asm/setup.h> | 30 | #include <asm/setup.h> |
30 | 31 | ||
31 | #include <mach/gpio.h> | 32 | #include <mach/gpio.h> |
32 | #include <mach/board.h> | 33 | #include <mach/board.h> |
33 | #include <mach/memory.h> | ||
34 | #include <mach/msm_iomap.h> | 34 | #include <mach/msm_iomap.h> |
35 | #include <mach/dma.h> | 35 | #include <mach/dma.h> |
36 | 36 | ||
@@ -85,7 +85,7 @@ static void __init msm7x30_map_io(void) | |||
85 | MACHINE_START(MSM7X30_SURF, "QCT MSM7X30 SURF") | 85 | MACHINE_START(MSM7X30_SURF, "QCT MSM7X30 SURF") |
86 | #ifdef CONFIG_MSM_DEBUG_UART | 86 | #ifdef CONFIG_MSM_DEBUG_UART |
87 | #endif | 87 | #endif |
88 | .boot_params = PHYS_OFFSET + 0x100, | 88 | .boot_params = PLAT_PHYS_OFFSET + 0x100, |
89 | .map_io = msm7x30_map_io, | 89 | .map_io = msm7x30_map_io, |
90 | .init_irq = msm7x30_init_irq, | 90 | .init_irq = msm7x30_init_irq, |
91 | .init_machine = msm7x30_init, | 91 | .init_machine = msm7x30_init, |
@@ -95,7 +95,7 @@ MACHINE_END | |||
95 | MACHINE_START(MSM7X30_FFA, "QCT MSM7X30 FFA") | 95 | MACHINE_START(MSM7X30_FFA, "QCT MSM7X30 FFA") |
96 | #ifdef CONFIG_MSM_DEBUG_UART | 96 | #ifdef CONFIG_MSM_DEBUG_UART |
97 | #endif | 97 | #endif |
98 | .boot_params = PHYS_OFFSET + 0x100, | 98 | .boot_params = PLAT_PHYS_OFFSET + 0x100, |
99 | .map_io = msm7x30_map_io, | 99 | .map_io = msm7x30_map_io, |
100 | .init_irq = msm7x30_init_irq, | 100 | .init_irq = msm7x30_init_irq, |
101 | .init_machine = msm7x30_init, | 101 | .init_machine = msm7x30_init, |
@@ -105,7 +105,7 @@ MACHINE_END | |||
105 | MACHINE_START(MSM7X30_FLUID, "QCT MSM7X30 FLUID") | 105 | MACHINE_START(MSM7X30_FLUID, "QCT MSM7X30 FLUID") |
106 | #ifdef CONFIG_MSM_DEBUG_UART | 106 | #ifdef CONFIG_MSM_DEBUG_UART |
107 | #endif | 107 | #endif |
108 | .boot_params = PHYS_OFFSET + 0x100, | 108 | .boot_params = PLAT_PHYS_OFFSET + 0x100, |
109 | .map_io = msm7x30_map_io, | 109 | .map_io = msm7x30_map_io, |
110 | .init_irq = msm7x30_init_irq, | 110 | .init_irq = msm7x30_init_irq, |
111 | .init_machine = msm7x30_init, | 111 | .init_machine = msm7x30_init, |
diff --git a/arch/arm/mach-msm/board-qsd8x50.c b/arch/arm/mach-msm/board-qsd8x50.c index 6dde8185205f..15c2bbd2ef81 100644 --- a/arch/arm/mach-msm/board-qsd8x50.c +++ b/arch/arm/mach-msm/board-qsd8x50.c | |||
@@ -118,7 +118,7 @@ static void __init qsd8x50_init(void) | |||
118 | MACHINE_START(QSD8X50_SURF, "QCT QSD8X50 SURF") | 118 | MACHINE_START(QSD8X50_SURF, "QCT QSD8X50 SURF") |
119 | #ifdef CONFIG_MSM_DEBUG_UART | 119 | #ifdef CONFIG_MSM_DEBUG_UART |
120 | #endif | 120 | #endif |
121 | .boot_params = PHYS_OFFSET + 0x100, | 121 | .boot_params = PLAT_PHYS_OFFSET + 0x100, |
122 | .map_io = qsd8x50_map_io, | 122 | .map_io = qsd8x50_map_io, |
123 | .init_irq = qsd8x50_init_irq, | 123 | .init_irq = qsd8x50_init_irq, |
124 | .init_machine = qsd8x50_init, | 124 | .init_machine = qsd8x50_init, |
@@ -128,7 +128,7 @@ MACHINE_END | |||
128 | MACHINE_START(QSD8X50A_ST1_5, "QCT QSD8X50A ST1.5") | 128 | MACHINE_START(QSD8X50A_ST1_5, "QCT QSD8X50A ST1.5") |
129 | #ifdef CONFIG_MSM_DEBUG_UART | 129 | #ifdef CONFIG_MSM_DEBUG_UART |
130 | #endif | 130 | #endif |
131 | .boot_params = PHYS_OFFSET + 0x100, | 131 | .boot_params = PLAT_PHYS_OFFSET + 0x100, |
132 | .map_io = qsd8x50_map_io, | 132 | .map_io = qsd8x50_map_io, |
133 | .init_irq = qsd8x50_init_irq, | 133 | .init_irq = qsd8x50_init_irq, |
134 | .init_machine = qsd8x50_init, | 134 | .init_machine = qsd8x50_init, |
diff --git a/arch/arm/mach-msm/board-sapphire.c b/arch/arm/mach-msm/board-sapphire.c index 8919ffb17196..83604f526f0f 100644 --- a/arch/arm/mach-msm/board-sapphire.c +++ b/arch/arm/mach-msm/board-sapphire.c | |||
@@ -107,7 +107,7 @@ MACHINE_START(SAPPHIRE, "sapphire") | |||
107 | /* Maintainer: Brian Swetland <swetland@google.com> */ | 107 | /* Maintainer: Brian Swetland <swetland@google.com> */ |
108 | #ifdef CONFIG_MSM_DEBUG_UART | 108 | #ifdef CONFIG_MSM_DEBUG_UART |
109 | #endif | 109 | #endif |
110 | .boot_params = PHYS_OFFSET + 0x100, | 110 | .boot_params = PLAT_PHYS_OFFSET + 0x100, |
111 | .fixup = sapphire_fixup, | 111 | .fixup = sapphire_fixup, |
112 | .map_io = sapphire_map_io, | 112 | .map_io = sapphire_map_io, |
113 | .init_irq = sapphire_init_irq, | 113 | .init_irq = sapphire_init_irq, |
diff --git a/arch/arm/mach-msm/include/mach/memory.h b/arch/arm/mach-msm/include/mach/memory.h index 070e17d237f1..176875df241f 100644 --- a/arch/arm/mach-msm/include/mach/memory.h +++ b/arch/arm/mach-msm/include/mach/memory.h | |||
@@ -18,15 +18,15 @@ | |||
18 | 18 | ||
19 | /* physical offset of RAM */ | 19 | /* physical offset of RAM */ |
20 | #if defined(CONFIG_ARCH_QSD8X50) && defined(CONFIG_MSM_SOC_REV_A) | 20 | #if defined(CONFIG_ARCH_QSD8X50) && defined(CONFIG_MSM_SOC_REV_A) |
21 | #define PHYS_OFFSET UL(0x00000000) | 21 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
22 | #elif defined(CONFIG_ARCH_QSD8X50) | 22 | #elif defined(CONFIG_ARCH_QSD8X50) |
23 | #define PHYS_OFFSET UL(0x20000000) | 23 | #define PLAT_PHYS_OFFSET UL(0x20000000) |
24 | #elif defined(CONFIG_ARCH_MSM7X30) | 24 | #elif defined(CONFIG_ARCH_MSM7X30) |
25 | #define PHYS_OFFSET UL(0x00200000) | 25 | #define PLAT_PHYS_OFFSET UL(0x00200000) |
26 | #elif defined(CONFIG_ARCH_MSM8X60) | 26 | #elif defined(CONFIG_ARCH_MSM8X60) |
27 | #define PHYS_OFFSET UL(0x40200000) | 27 | #define PLAT_PHYS_OFFSET UL(0x40200000) |
28 | #else | 28 | #else |
29 | #define PHYS_OFFSET UL(0x10000000) | 29 | #define PLAT_PHYS_OFFSET UL(0x10000000) |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #endif | 32 | #endif |
diff --git a/arch/arm/mach-mv78xx0/include/mach/memory.h b/arch/arm/mach-mv78xx0/include/mach/memory.h index e663042d307f..a648c51f2e42 100644 --- a/arch/arm/mach-mv78xx0/include/mach/memory.h +++ b/arch/arm/mach-mv78xx0/include/mach/memory.h | |||
@@ -5,6 +5,6 @@ | |||
5 | #ifndef __ASM_ARCH_MEMORY_H | 5 | #ifndef __ASM_ARCH_MEMORY_H |
6 | #define __ASM_ARCH_MEMORY_H | 6 | #define __ASM_ARCH_MEMORY_H |
7 | 7 | ||
8 | #define PHYS_OFFSET UL(0x00000000) | 8 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
9 | 9 | ||
10 | #endif | 10 | #endif |
diff --git a/arch/arm/mach-mx3/mach-kzm_arm11_01.c b/arch/arm/mach-mx3/mach-kzm_arm11_01.c index a5f3eb24e4d5..df1a6ce8e3e1 100644 --- a/arch/arm/mach-mx3/mach-kzm_arm11_01.c +++ b/arch/arm/mach-mx3/mach-kzm_arm11_01.c | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include <asm/irq.h> | 28 | #include <asm/irq.h> |
29 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
30 | #include <asm/memory.h> | ||
30 | #include <asm/setup.h> | 31 | #include <asm/setup.h> |
31 | #include <asm/mach/arch.h> | 32 | #include <asm/mach/arch.h> |
32 | #include <asm/mach/irq.h> | 33 | #include <asm/mach/irq.h> |
@@ -36,7 +37,6 @@ | |||
36 | #include <mach/clock.h> | 37 | #include <mach/clock.h> |
37 | #include <mach/common.h> | 38 | #include <mach/common.h> |
38 | #include <mach/iomux-mx3.h> | 39 | #include <mach/iomux-mx3.h> |
39 | #include <mach/memory.h> | ||
40 | 40 | ||
41 | #include "devices-imx31.h" | 41 | #include "devices-imx31.h" |
42 | #include "devices.h" | 42 | #include "devices.h" |
diff --git a/arch/arm/mach-netx/include/mach/memory.h b/arch/arm/mach-netx/include/mach/memory.h index 9a363f297f90..59561496c36e 100644 --- a/arch/arm/mach-netx/include/mach/memory.h +++ b/arch/arm/mach-netx/include/mach/memory.h | |||
@@ -20,7 +20,7 @@ | |||
20 | #ifndef __ASM_ARCH_MEMORY_H | 20 | #ifndef __ASM_ARCH_MEMORY_H |
21 | #define __ASM_ARCH_MEMORY_H | 21 | #define __ASM_ARCH_MEMORY_H |
22 | 22 | ||
23 | #define PHYS_OFFSET UL(0x80000000) | 23 | #define PLAT_PHYS_OFFSET UL(0x80000000) |
24 | 24 | ||
25 | #endif | 25 | #endif |
26 | 26 | ||
diff --git a/arch/arm/mach-nomadik/include/mach/memory.h b/arch/arm/mach-nomadik/include/mach/memory.h index 1e5689d98ecd..d3325211ba6a 100644 --- a/arch/arm/mach-nomadik/include/mach/memory.h +++ b/arch/arm/mach-nomadik/include/mach/memory.h | |||
@@ -23,6 +23,6 @@ | |||
23 | /* | 23 | /* |
24 | * Physical DRAM offset. | 24 | * Physical DRAM offset. |
25 | */ | 25 | */ |
26 | #define PHYS_OFFSET UL(0x00000000) | 26 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
27 | 27 | ||
28 | #endif | 28 | #endif |
diff --git a/arch/arm/mach-ns9xxx/include/mach/memory.h b/arch/arm/mach-ns9xxx/include/mach/memory.h index 6107193adbfe..5c65aee6e7a9 100644 --- a/arch/arm/mach-ns9xxx/include/mach/memory.h +++ b/arch/arm/mach-ns9xxx/include/mach/memory.h | |||
@@ -19,6 +19,6 @@ | |||
19 | #define NS9XXX_CS2STAT_LENGTH UL(0x1000) | 19 | #define NS9XXX_CS2STAT_LENGTH UL(0x1000) |
20 | #define NS9XXX_CS3STAT_LENGTH UL(0x1000) | 20 | #define NS9XXX_CS3STAT_LENGTH UL(0x1000) |
21 | 21 | ||
22 | #define PHYS_OFFSET UL(0x00000000) | 22 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
23 | 23 | ||
24 | #endif | 24 | #endif |
diff --git a/arch/arm/mach-nuc93x/include/mach/memory.h b/arch/arm/mach-nuc93x/include/mach/memory.h index 323ab0db3f7d..ef9864b002a6 100644 --- a/arch/arm/mach-nuc93x/include/mach/memory.h +++ b/arch/arm/mach-nuc93x/include/mach/memory.h | |||
@@ -16,6 +16,6 @@ | |||
16 | #ifndef __ASM_ARCH_MEMORY_H | 16 | #ifndef __ASM_ARCH_MEMORY_H |
17 | #define __ASM_ARCH_MEMORY_H | 17 | #define __ASM_ARCH_MEMORY_H |
18 | 18 | ||
19 | #define PHYS_OFFSET UL(0x00000000) | 19 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
20 | 20 | ||
21 | #endif | 21 | #endif |
diff --git a/arch/arm/mach-omap1/include/mach/debug-macro.S b/arch/arm/mach-omap1/include/mach/debug-macro.S index 6a0fa0462365..62856044eb63 100644 --- a/arch/arm/mach-omap1/include/mach/debug-macro.S +++ b/arch/arm/mach-omap1/include/mach/debug-macro.S | |||
@@ -17,6 +17,9 @@ | |||
17 | 17 | ||
18 | #include <plat/serial.h> | 18 | #include <plat/serial.h> |
19 | 19 | ||
20 | #define omap_uart_v2p(x) ((x) - PAGE_OFFSET + PLAT_PHYS_OFFSET) | ||
21 | #define omap_uart_p2v(x) ((x) - PLAT_PHYS_OFFSET + PAGE_OFFSET) | ||
22 | |||
20 | .pushsection .data | 23 | .pushsection .data |
21 | omap_uart_phys: .word 0x0 | 24 | omap_uart_phys: .word 0x0 |
22 | omap_uart_virt: .word 0x0 | 25 | omap_uart_virt: .word 0x0 |
@@ -33,7 +36,7 @@ omap_uart_virt: .word 0x0 | |||
33 | /* Use omap_uart_phys/virt if already configured */ | 36 | /* Use omap_uart_phys/virt if already configured */ |
34 | 9: mrc p15, 0, \rp, c1, c0 | 37 | 9: mrc p15, 0, \rp, c1, c0 |
35 | tst \rp, #1 @ MMU enabled? | 38 | tst \rp, #1 @ MMU enabled? |
36 | ldreq \rp, =__virt_to_phys(omap_uart_phys) @ MMU not enabled | 39 | ldreq \rp, =omap_uart_v2p(omap_uart_phys) @ MMU disabled |
37 | ldrne \rp, =omap_uart_phys @ MMU enabled | 40 | ldrne \rp, =omap_uart_phys @ MMU enabled |
38 | add \rv, \rp, #4 @ omap_uart_virt | 41 | add \rv, \rp, #4 @ omap_uart_virt |
39 | ldr \rp, [\rp, #0] | 42 | ldr \rp, [\rp, #0] |
@@ -46,7 +49,7 @@ omap_uart_virt: .word 0x0 | |||
46 | mrc p15, 0, \rp, c1, c0 | 49 | mrc p15, 0, \rp, c1, c0 |
47 | tst \rp, #1 @ MMU enabled? | 50 | tst \rp, #1 @ MMU enabled? |
48 | ldreq \rp, =OMAP_UART_INFO @ MMU not enabled | 51 | ldreq \rp, =OMAP_UART_INFO @ MMU not enabled |
49 | ldrne \rp, =__phys_to_virt(OMAP_UART_INFO) @ MMU enabled | 52 | ldrne \rp, =omap_uart_p2v(OMAP_UART_INFO) @ MMU enabled |
50 | ldr \rp, [\rp, #0] | 53 | ldr \rp, [\rp, #0] |
51 | 54 | ||
52 | /* Select the UART to use based on the UART1 scratchpad value */ | 55 | /* Select the UART to use based on the UART1 scratchpad value */ |
@@ -73,7 +76,7 @@ omap_uart_virt: .word 0x0 | |||
73 | 98: add \rp, \rp, #0xff000000 @ phys base | 76 | 98: add \rp, \rp, #0xff000000 @ phys base |
74 | mrc p15, 0, \rv, c1, c0 | 77 | mrc p15, 0, \rv, c1, c0 |
75 | tst \rv, #1 @ MMU enabled? | 78 | tst \rv, #1 @ MMU enabled? |
76 | ldreq \rv, =__virt_to_phys(omap_uart_phys) @ MMU not enabled | 79 | ldreq \rv, =omap_uart_v2p(omap_uart_phys) @ MMU disabled |
77 | ldrne \rv, =omap_uart_phys @ MMU enabled | 80 | ldrne \rv, =omap_uart_phys @ MMU enabled |
78 | str \rp, [\rv, #0] | 81 | str \rp, [\rv, #0] |
79 | sub \rp, \rp, #0xff000000 @ phys base | 82 | sub \rp, \rp, #0xff000000 @ phys base |
diff --git a/arch/arm/mach-omap2/include/mach/debug-macro.S b/arch/arm/mach-omap2/include/mach/debug-macro.S index 6a4d4136002e..6049f465ec84 100644 --- a/arch/arm/mach-omap2/include/mach/debug-macro.S +++ b/arch/arm/mach-omap2/include/mach/debug-macro.S | |||
@@ -19,6 +19,9 @@ | |||
19 | 19 | ||
20 | #define UART_OFFSET(addr) ((addr) & 0x00ffffff) | 20 | #define UART_OFFSET(addr) ((addr) & 0x00ffffff) |
21 | 21 | ||
22 | #define omap_uart_v2p(x) ((x) - PAGE_OFFSET + PLAT_PHYS_OFFSET) | ||
23 | #define omap_uart_p2v(x) ((x) - PLAT_PHYS_OFFSET + PAGE_OFFSET) | ||
24 | |||
22 | .pushsection .data | 25 | .pushsection .data |
23 | omap_uart_phys: .word 0 | 26 | omap_uart_phys: .word 0 |
24 | omap_uart_virt: .word 0 | 27 | omap_uart_virt: .word 0 |
@@ -36,7 +39,7 @@ omap_uart_lsr: .word 0 | |||
36 | /* Use omap_uart_phys/virt if already configured */ | 39 | /* Use omap_uart_phys/virt if already configured */ |
37 | 10: mrc p15, 0, \rp, c1, c0 | 40 | 10: mrc p15, 0, \rp, c1, c0 |
38 | tst \rp, #1 @ MMU enabled? | 41 | tst \rp, #1 @ MMU enabled? |
39 | ldreq \rp, =__virt_to_phys(omap_uart_phys) @ MMU not enabled | 42 | ldreq \rp, =omap_uart_v2p(omap_uart_phys) @ MMU disabled |
40 | ldrne \rp, =omap_uart_phys @ MMU enabled | 43 | ldrne \rp, =omap_uart_phys @ MMU enabled |
41 | add \rv, \rp, #4 @ omap_uart_virt | 44 | add \rv, \rp, #4 @ omap_uart_virt |
42 | ldr \rp, [\rp, #0] | 45 | ldr \rp, [\rp, #0] |
@@ -49,7 +52,7 @@ omap_uart_lsr: .word 0 | |||
49 | mrc p15, 0, \rp, c1, c0 | 52 | mrc p15, 0, \rp, c1, c0 |
50 | tst \rp, #1 @ MMU enabled? | 53 | tst \rp, #1 @ MMU enabled? |
51 | ldreq \rp, =OMAP_UART_INFO @ MMU not enabled | 54 | ldreq \rp, =OMAP_UART_INFO @ MMU not enabled |
52 | ldrne \rp, =__phys_to_virt(OMAP_UART_INFO) @ MMU enabled | 55 | ldrne \rp, =omap_uart_p2v(OMAP_UART_INFO) @ MMU enabled |
53 | ldr \rp, [\rp, #0] | 56 | ldr \rp, [\rp, #0] |
54 | 57 | ||
55 | /* Select the UART to use based on the UART1 scratchpad value */ | 58 | /* Select the UART to use based on the UART1 scratchpad value */ |
@@ -94,7 +97,7 @@ omap_uart_lsr: .word 0 | |||
94 | 95: ldr \rp, =ZOOM_UART_BASE | 97 | 95: ldr \rp, =ZOOM_UART_BASE |
95 | mrc p15, 0, \rv, c1, c0 | 98 | mrc p15, 0, \rv, c1, c0 |
96 | tst \rv, #1 @ MMU enabled? | 99 | tst \rv, #1 @ MMU enabled? |
97 | ldreq \rv, =__virt_to_phys(omap_uart_phys) @ MMU not enabled | 100 | ldreq \rv, =omap_uart_v2p(omap_uart_phys) @ MMU disabled |
98 | ldrne \rv, =omap_uart_phys @ MMU enabled | 101 | ldrne \rv, =omap_uart_phys @ MMU enabled |
99 | str \rp, [\rv, #0] | 102 | str \rp, [\rv, #0] |
100 | ldr \rp, =ZOOM_UART_VIRT | 103 | ldr \rp, =ZOOM_UART_VIRT |
@@ -109,7 +112,7 @@ omap_uart_lsr: .word 0 | |||
109 | 98: add \rp, \rp, #0x48000000 @ phys base | 112 | 98: add \rp, \rp, #0x48000000 @ phys base |
110 | mrc p15, 0, \rv, c1, c0 | 113 | mrc p15, 0, \rv, c1, c0 |
111 | tst \rv, #1 @ MMU enabled? | 114 | tst \rv, #1 @ MMU enabled? |
112 | ldreq \rv, =__virt_to_phys(omap_uart_phys) @ MMU not enabled | 115 | ldreq \rv, =omap_uart_v2p(omap_uart_phys) @ MMU disabled |
113 | ldrne \rv, =omap_uart_phys @ MMU enabled | 116 | ldrne \rv, =omap_uart_phys @ MMU enabled |
114 | str \rp, [\rv, #0] | 117 | str \rp, [\rv, #0] |
115 | sub \rp, \rp, #0x48000000 @ phys base | 118 | sub \rp, \rp, #0x48000000 @ phys base |
@@ -131,7 +134,7 @@ omap_uart_lsr: .word 0 | |||
131 | .macro busyuart,rd,rx | 134 | .macro busyuart,rd,rx |
132 | 1001: mrc p15, 0, \rd, c1, c0 | 135 | 1001: mrc p15, 0, \rd, c1, c0 |
133 | tst \rd, #1 @ MMU enabled? | 136 | tst \rd, #1 @ MMU enabled? |
134 | ldreq \rd, =__virt_to_phys(omap_uart_lsr) @ MMU not enabled | 137 | ldreq \rd, =omap_uart_v2p(omap_uart_lsr) @ MMU disabled |
135 | ldrne \rd, =omap_uart_lsr @ MMU enabled | 138 | ldrne \rd, =omap_uart_lsr @ MMU enabled |
136 | ldr \rd, [\rd, #0] | 139 | ldr \rd, [\rd, #0] |
137 | ldrb \rd, [\rx, \rd] | 140 | ldrb \rd, [\rx, \rd] |
diff --git a/arch/arm/mach-orion5x/include/mach/memory.h b/arch/arm/mach-orion5x/include/mach/memory.h index 52a2955d0f87..6769917882fe 100644 --- a/arch/arm/mach-orion5x/include/mach/memory.h +++ b/arch/arm/mach-orion5x/include/mach/memory.h | |||
@@ -7,6 +7,6 @@ | |||
7 | #ifndef __ASM_ARCH_MEMORY_H | 7 | #ifndef __ASM_ARCH_MEMORY_H |
8 | #define __ASM_ARCH_MEMORY_H | 8 | #define __ASM_ARCH_MEMORY_H |
9 | 9 | ||
10 | #define PHYS_OFFSET UL(0x00000000) | 10 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
11 | 11 | ||
12 | #endif | 12 | #endif |
diff --git a/arch/arm/mach-pnx4008/include/mach/memory.h b/arch/arm/mach-pnx4008/include/mach/memory.h index 0e8770081058..1275db61cee5 100644 --- a/arch/arm/mach-pnx4008/include/mach/memory.h +++ b/arch/arm/mach-pnx4008/include/mach/memory.h | |||
@@ -16,6 +16,6 @@ | |||
16 | /* | 16 | /* |
17 | * Physical DRAM offset. | 17 | * Physical DRAM offset. |
18 | */ | 18 | */ |
19 | #define PHYS_OFFSET UL(0x80000000) | 19 | #define PLAT_PHYS_OFFSET UL(0x80000000) |
20 | 20 | ||
21 | #endif | 21 | #endif |
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c index a134a1413e01..e194d928cdaa 100644 --- a/arch/arm/mach-pxa/balloon3.c +++ b/arch/arm/mach-pxa/balloon3.c | |||
@@ -829,5 +829,5 @@ MACHINE_START(BALLOON3, "Balloon3") | |||
829 | .init_irq = balloon3_init_irq, | 829 | .init_irq = balloon3_init_irq, |
830 | .timer = &pxa_timer, | 830 | .timer = &pxa_timer, |
831 | .init_machine = balloon3_init, | 831 | .init_machine = balloon3_init, |
832 | .boot_params = PHYS_OFFSET + 0x100, | 832 | .boot_params = PLAT_PHYS_OFFSET + 0x100, |
833 | MACHINE_END | 833 | MACHINE_END |
diff --git a/arch/arm/mach-pxa/include/mach/memory.h b/arch/arm/mach-pxa/include/mach/memory.h index 92361a66b223..7f68724dcc27 100644 --- a/arch/arm/mach-pxa/include/mach/memory.h +++ b/arch/arm/mach-pxa/include/mach/memory.h | |||
@@ -15,7 +15,7 @@ | |||
15 | /* | 15 | /* |
16 | * Physical DRAM offset. | 16 | * Physical DRAM offset. |
17 | */ | 17 | */ |
18 | #define PHYS_OFFSET UL(0xa0000000) | 18 | #define PLAT_PHYS_OFFSET UL(0xa0000000) |
19 | 19 | ||
20 | #if !defined(__ASSEMBLY__) && defined(CONFIG_MACH_ARMCORE) && defined(CONFIG_PCI) | 20 | #if !defined(__ASSEMBLY__) && defined(CONFIG_MACH_ARMCORE) && defined(CONFIG_PCI) |
21 | void cmx2xx_pci_adjust_zones(unsigned long *size, unsigned long *holes); | 21 | void cmx2xx_pci_adjust_zones(unsigned long *size, unsigned long *holes); |
diff --git a/arch/arm/mach-realview/include/mach/memory.h b/arch/arm/mach-realview/include/mach/memory.h index 5dafc157b276..e05fc2c4c080 100644 --- a/arch/arm/mach-realview/include/mach/memory.h +++ b/arch/arm/mach-realview/include/mach/memory.h | |||
@@ -24,9 +24,9 @@ | |||
24 | * Physical DRAM offset. | 24 | * Physical DRAM offset. |
25 | */ | 25 | */ |
26 | #ifdef CONFIG_REALVIEW_HIGH_PHYS_OFFSET | 26 | #ifdef CONFIG_REALVIEW_HIGH_PHYS_OFFSET |
27 | #define PHYS_OFFSET UL(0x70000000) | 27 | #define PLAT_PHYS_OFFSET UL(0x70000000) |
28 | #else | 28 | #else |
29 | #define PHYS_OFFSET UL(0x00000000) | 29 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #if !defined(__ASSEMBLY__) && defined(CONFIG_ZONE_DMA) | 32 | #if !defined(__ASSEMBLY__) && defined(CONFIG_ZONE_DMA) |
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index 6ef5c5e528b2..8ede983b861c 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
@@ -484,7 +484,7 @@ static void __init realview_eb_init(void) | |||
484 | 484 | ||
485 | MACHINE_START(REALVIEW_EB, "ARM-RealView EB") | 485 | MACHINE_START(REALVIEW_EB, "ARM-RealView EB") |
486 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ | 486 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ |
487 | .boot_params = PHYS_OFFSET + 0x00000100, | 487 | .boot_params = PLAT_PHYS_OFFSET + 0x00000100, |
488 | .fixup = realview_fixup, | 488 | .fixup = realview_fixup, |
489 | .map_io = realview_eb_map_io, | 489 | .map_io = realview_eb_map_io, |
490 | .init_irq = gic_init_irq, | 490 | .init_irq = gic_init_irq, |
diff --git a/arch/arm/mach-realview/realview_pb1176.c b/arch/arm/mach-realview/realview_pb1176.c index cbdc97a5685f..9f26369555c7 100644 --- a/arch/arm/mach-realview/realview_pb1176.c +++ b/arch/arm/mach-realview/realview_pb1176.c | |||
@@ -379,7 +379,7 @@ static void __init realview_pb1176_init(void) | |||
379 | 379 | ||
380 | MACHINE_START(REALVIEW_PB1176, "ARM-RealView PB1176") | 380 | MACHINE_START(REALVIEW_PB1176, "ARM-RealView PB1176") |
381 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ | 381 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ |
382 | .boot_params = PHYS_OFFSET + 0x00000100, | 382 | .boot_params = PLAT_PHYS_OFFSET + 0x00000100, |
383 | .fixup = realview_pb1176_fixup, | 383 | .fixup = realview_pb1176_fixup, |
384 | .map_io = realview_pb1176_map_io, | 384 | .map_io = realview_pb1176_map_io, |
385 | .init_irq = gic_init_irq, | 385 | .init_irq = gic_init_irq, |
diff --git a/arch/arm/mach-realview/realview_pb11mp.c b/arch/arm/mach-realview/realview_pb11mp.c index 8e8ab7d29a6a..dea06b2da3a2 100644 --- a/arch/arm/mach-realview/realview_pb11mp.c +++ b/arch/arm/mach-realview/realview_pb11mp.c | |||
@@ -381,7 +381,7 @@ static void __init realview_pb11mp_init(void) | |||
381 | 381 | ||
382 | MACHINE_START(REALVIEW_PB11MP, "ARM-RealView PB11MPCore") | 382 | MACHINE_START(REALVIEW_PB11MP, "ARM-RealView PB11MPCore") |
383 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ | 383 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ |
384 | .boot_params = PHYS_OFFSET + 0x00000100, | 384 | .boot_params = PLAT_PHYS_OFFSET + 0x00000100, |
385 | .fixup = realview_fixup, | 385 | .fixup = realview_fixup, |
386 | .map_io = realview_pb11mp_map_io, | 386 | .map_io = realview_pb11mp_map_io, |
387 | .init_irq = gic_init_irq, | 387 | .init_irq = gic_init_irq, |
diff --git a/arch/arm/mach-realview/realview_pba8.c b/arch/arm/mach-realview/realview_pba8.c index 841118e3e118..7d0f1734a217 100644 --- a/arch/arm/mach-realview/realview_pba8.c +++ b/arch/arm/mach-realview/realview_pba8.c | |||
@@ -331,7 +331,7 @@ static void __init realview_pba8_init(void) | |||
331 | 331 | ||
332 | MACHINE_START(REALVIEW_PBA8, "ARM-RealView PB-A8") | 332 | MACHINE_START(REALVIEW_PBA8, "ARM-RealView PB-A8") |
333 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ | 333 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ |
334 | .boot_params = PHYS_OFFSET + 0x00000100, | 334 | .boot_params = PLAT_PHYS_OFFSET + 0x00000100, |
335 | .fixup = realview_fixup, | 335 | .fixup = realview_fixup, |
336 | .map_io = realview_pba8_map_io, | 336 | .map_io = realview_pba8_map_io, |
337 | .init_irq = gic_init_irq, | 337 | .init_irq = gic_init_irq, |
diff --git a/arch/arm/mach-realview/realview_pbx.c b/arch/arm/mach-realview/realview_pbx.c index 02b755b009db..b89e28f8853e 100644 --- a/arch/arm/mach-realview/realview_pbx.c +++ b/arch/arm/mach-realview/realview_pbx.c | |||
@@ -414,7 +414,7 @@ static void __init realview_pbx_init(void) | |||
414 | 414 | ||
415 | MACHINE_START(REALVIEW_PBX, "ARM-RealView PBX") | 415 | MACHINE_START(REALVIEW_PBX, "ARM-RealView PBX") |
416 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ | 416 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ |
417 | .boot_params = PHYS_OFFSET + 0x00000100, | 417 | .boot_params = PLAT_PHYS_OFFSET + 0x00000100, |
418 | .fixup = realview_pbx_fixup, | 418 | .fixup = realview_pbx_fixup, |
419 | .map_io = realview_pbx_map_io, | 419 | .map_io = realview_pbx_map_io, |
420 | .init_irq = gic_init_irq, | 420 | .init_irq = gic_init_irq, |
diff --git a/arch/arm/mach-rpc/include/mach/memory.h b/arch/arm/mach-rpc/include/mach/memory.h index 78191bf25192..18a221093bf5 100644 --- a/arch/arm/mach-rpc/include/mach/memory.h +++ b/arch/arm/mach-rpc/include/mach/memory.h | |||
@@ -21,7 +21,7 @@ | |||
21 | /* | 21 | /* |
22 | * Physical DRAM offset. | 22 | * Physical DRAM offset. |
23 | */ | 23 | */ |
24 | #define PHYS_OFFSET UL(0x10000000) | 24 | #define PLAT_PHYS_OFFSET UL(0x10000000) |
25 | 25 | ||
26 | /* | 26 | /* |
27 | * Cache flushing area - ROM | 27 | * Cache flushing area - ROM |
diff --git a/arch/arm/mach-s3c2400/include/mach/memory.h b/arch/arm/mach-s3c2400/include/mach/memory.h index cf5901ffd385..3f33670dd012 100644 --- a/arch/arm/mach-s3c2400/include/mach/memory.h +++ b/arch/arm/mach-s3c2400/include/mach/memory.h | |||
@@ -15,6 +15,6 @@ | |||
15 | #ifndef __ASM_ARCH_MEMORY_H | 15 | #ifndef __ASM_ARCH_MEMORY_H |
16 | #define __ASM_ARCH_MEMORY_H | 16 | #define __ASM_ARCH_MEMORY_H |
17 | 17 | ||
18 | #define PHYS_OFFSET UL(0x0C000000) | 18 | #define PLAT_PHYS_OFFSET UL(0x0C000000) |
19 | 19 | ||
20 | #endif | 20 | #endif |
diff --git a/arch/arm/mach-s3c2410/include/mach/memory.h b/arch/arm/mach-s3c2410/include/mach/memory.h index 6f1e5871ae4b..f92b97b89c0c 100644 --- a/arch/arm/mach-s3c2410/include/mach/memory.h +++ b/arch/arm/mach-s3c2410/include/mach/memory.h | |||
@@ -11,6 +11,6 @@ | |||
11 | #ifndef __ASM_ARCH_MEMORY_H | 11 | #ifndef __ASM_ARCH_MEMORY_H |
12 | #define __ASM_ARCH_MEMORY_H | 12 | #define __ASM_ARCH_MEMORY_H |
13 | 13 | ||
14 | #define PHYS_OFFSET UL(0x30000000) | 14 | #define PLAT_PHYS_OFFSET UL(0x30000000) |
15 | 15 | ||
16 | #endif | 16 | #endif |
diff --git a/arch/arm/mach-s3c24a0/include/mach/memory.h b/arch/arm/mach-s3c24a0/include/mach/memory.h index 7d74fd5c8d66..7d208a71b172 100644 --- a/arch/arm/mach-s3c24a0/include/mach/memory.h +++ b/arch/arm/mach-s3c24a0/include/mach/memory.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #ifndef __ASM_ARCH_24A0_MEMORY_H | 11 | #ifndef __ASM_ARCH_24A0_MEMORY_H |
12 | #define __ASM_ARCH_24A0_MEMORY_H __FILE__ | 12 | #define __ASM_ARCH_24A0_MEMORY_H __FILE__ |
13 | 13 | ||
14 | #define PHYS_OFFSET UL(0x10000000) | 14 | #define PLAT_PHYS_OFFSET UL(0x10000000) |
15 | 15 | ||
16 | #define __virt_to_bus(x) __virt_to_phys(x) | 16 | #define __virt_to_bus(x) __virt_to_phys(x) |
17 | #define __bus_to_virt(x) __phys_to_virt(x) | 17 | #define __bus_to_virt(x) __phys_to_virt(x) |
diff --git a/arch/arm/mach-s3c64xx/include/mach/memory.h b/arch/arm/mach-s3c64xx/include/mach/memory.h index 42cc54e2ee30..4760cdae1eb6 100644 --- a/arch/arm/mach-s3c64xx/include/mach/memory.h +++ b/arch/arm/mach-s3c64xx/include/mach/memory.h | |||
@@ -13,7 +13,7 @@ | |||
13 | #ifndef __ASM_ARCH_MEMORY_H | 13 | #ifndef __ASM_ARCH_MEMORY_H |
14 | #define __ASM_ARCH_MEMORY_H | 14 | #define __ASM_ARCH_MEMORY_H |
15 | 15 | ||
16 | #define PHYS_OFFSET UL(0x50000000) | 16 | #define PLAT_PHYS_OFFSET UL(0x50000000) |
17 | 17 | ||
18 | #define CONSISTENT_DMA_SIZE SZ_8M | 18 | #define CONSISTENT_DMA_SIZE SZ_8M |
19 | 19 | ||
diff --git a/arch/arm/mach-s5p6442/include/mach/memory.h b/arch/arm/mach-s5p6442/include/mach/memory.h index 9ddd877ba2ea..cfe259dded33 100644 --- a/arch/arm/mach-s5p6442/include/mach/memory.h +++ b/arch/arm/mach-s5p6442/include/mach/memory.h | |||
@@ -13,7 +13,7 @@ | |||
13 | #ifndef __ASM_ARCH_MEMORY_H | 13 | #ifndef __ASM_ARCH_MEMORY_H |
14 | #define __ASM_ARCH_MEMORY_H | 14 | #define __ASM_ARCH_MEMORY_H |
15 | 15 | ||
16 | #define PHYS_OFFSET UL(0x20000000) | 16 | #define PLAT_PHYS_OFFSET UL(0x20000000) |
17 | #define CONSISTENT_DMA_SIZE SZ_8M | 17 | #define CONSISTENT_DMA_SIZE SZ_8M |
18 | 18 | ||
19 | #endif /* __ASM_ARCH_MEMORY_H */ | 19 | #endif /* __ASM_ARCH_MEMORY_H */ |
diff --git a/arch/arm/mach-s5p64x0/include/mach/memory.h b/arch/arm/mach-s5p64x0/include/mach/memory.h index 1b036b0a24ce..365a6eb4b88f 100644 --- a/arch/arm/mach-s5p64x0/include/mach/memory.h +++ b/arch/arm/mach-s5p64x0/include/mach/memory.h | |||
@@ -13,7 +13,7 @@ | |||
13 | #ifndef __ASM_ARCH_MEMORY_H | 13 | #ifndef __ASM_ARCH_MEMORY_H |
14 | #define __ASM_ARCH_MEMORY_H __FILE__ | 14 | #define __ASM_ARCH_MEMORY_H __FILE__ |
15 | 15 | ||
16 | #define PHYS_OFFSET UL(0x20000000) | 16 | #define PLAT_PHYS_OFFSET UL(0x20000000) |
17 | #define CONSISTENT_DMA_SIZE SZ_8M | 17 | #define CONSISTENT_DMA_SIZE SZ_8M |
18 | 18 | ||
19 | #endif /* __ASM_ARCH_MEMORY_H */ | 19 | #endif /* __ASM_ARCH_MEMORY_H */ |
diff --git a/arch/arm/mach-s5pc100/include/mach/memory.h b/arch/arm/mach-s5pc100/include/mach/memory.h index 4b60d18179f7..bda4e79fd5fc 100644 --- a/arch/arm/mach-s5pc100/include/mach/memory.h +++ b/arch/arm/mach-s5pc100/include/mach/memory.h | |||
@@ -13,6 +13,6 @@ | |||
13 | #ifndef __ASM_ARCH_MEMORY_H | 13 | #ifndef __ASM_ARCH_MEMORY_H |
14 | #define __ASM_ARCH_MEMORY_H | 14 | #define __ASM_ARCH_MEMORY_H |
15 | 15 | ||
16 | #define PHYS_OFFSET UL(0x20000000) | 16 | #define PLAT_PHYS_OFFSET UL(0x20000000) |
17 | 17 | ||
18 | #endif | 18 | #endif |
diff --git a/arch/arm/mach-s5pv210/include/mach/memory.h b/arch/arm/mach-s5pv210/include/mach/memory.h index d503e0c4ce4f..7b5fcf0da0c4 100644 --- a/arch/arm/mach-s5pv210/include/mach/memory.h +++ b/arch/arm/mach-s5pv210/include/mach/memory.h | |||
@@ -13,7 +13,7 @@ | |||
13 | #ifndef __ASM_ARCH_MEMORY_H | 13 | #ifndef __ASM_ARCH_MEMORY_H |
14 | #define __ASM_ARCH_MEMORY_H | 14 | #define __ASM_ARCH_MEMORY_H |
15 | 15 | ||
16 | #define PHYS_OFFSET UL(0x20000000) | 16 | #define PLAT_PHYS_OFFSET UL(0x20000000) |
17 | #define CONSISTENT_DMA_SIZE (SZ_8M + SZ_4M + SZ_2M) | 17 | #define CONSISTENT_DMA_SIZE (SZ_8M + SZ_4M + SZ_2M) |
18 | 18 | ||
19 | /* | 19 | /* |
diff --git a/arch/arm/mach-s5pv310/include/mach/memory.h b/arch/arm/mach-s5pv310/include/mach/memory.h index 1dffb4823245..470b01bf8614 100644 --- a/arch/arm/mach-s5pv310/include/mach/memory.h +++ b/arch/arm/mach-s5pv310/include/mach/memory.h | |||
@@ -13,7 +13,7 @@ | |||
13 | #ifndef __ASM_ARCH_MEMORY_H | 13 | #ifndef __ASM_ARCH_MEMORY_H |
14 | #define __ASM_ARCH_MEMORY_H __FILE__ | 14 | #define __ASM_ARCH_MEMORY_H __FILE__ |
15 | 15 | ||
16 | #define PHYS_OFFSET UL(0x40000000) | 16 | #define PLAT_PHYS_OFFSET UL(0x40000000) |
17 | 17 | ||
18 | /* Maximum of 256MiB in one bank */ | 18 | /* Maximum of 256MiB in one bank */ |
19 | #define MAX_PHYSMEM_BITS 32 | 19 | #define MAX_PHYSMEM_BITS 32 |
diff --git a/arch/arm/mach-sa1100/include/mach/memory.h b/arch/arm/mach-sa1100/include/mach/memory.h index 128a1dfa96b9..a44da6a2916c 100644 --- a/arch/arm/mach-sa1100/include/mach/memory.h +++ b/arch/arm/mach-sa1100/include/mach/memory.h | |||
@@ -12,7 +12,7 @@ | |||
12 | /* | 12 | /* |
13 | * Physical DRAM offset is 0xc0000000 on the SA1100 | 13 | * Physical DRAM offset is 0xc0000000 on the SA1100 |
14 | */ | 14 | */ |
15 | #define PHYS_OFFSET UL(0xc0000000) | 15 | #define PLAT_PHYS_OFFSET UL(0xc0000000) |
16 | 16 | ||
17 | #ifndef __ASSEMBLY__ | 17 | #ifndef __ASSEMBLY__ |
18 | 18 | ||
diff --git a/arch/arm/mach-shark/include/mach/memory.h b/arch/arm/mach-shark/include/mach/memory.h index d9c4812f1c31..9afb17000008 100644 --- a/arch/arm/mach-shark/include/mach/memory.h +++ b/arch/arm/mach-shark/include/mach/memory.h | |||
@@ -15,7 +15,7 @@ | |||
15 | /* | 15 | /* |
16 | * Physical DRAM offset. | 16 | * Physical DRAM offset. |
17 | */ | 17 | */ |
18 | #define PHYS_OFFSET UL(0x08000000) | 18 | #define PLAT_PHYS_OFFSET UL(0x08000000) |
19 | 19 | ||
20 | #ifndef __ASSEMBLY__ | 20 | #ifndef __ASSEMBLY__ |
21 | 21 | ||
diff --git a/arch/arm/mach-shmobile/include/mach/memory.h b/arch/arm/mach-shmobile/include/mach/memory.h index 377584e57e03..ad00c3c258f4 100644 --- a/arch/arm/mach-shmobile/include/mach/memory.h +++ b/arch/arm/mach-shmobile/include/mach/memory.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef __ASM_MACH_MEMORY_H | 1 | #ifndef __ASM_MACH_MEMORY_H |
2 | #define __ASM_MACH_MEMORY_H | 2 | #define __ASM_MACH_MEMORY_H |
3 | 3 | ||
4 | #define PHYS_OFFSET UL(CONFIG_MEMORY_START) | 4 | #define PLAT_PHYS_OFFSET UL(CONFIG_MEMORY_START) |
5 | #define MEM_SIZE UL(CONFIG_MEMORY_SIZE) | 5 | #define MEM_SIZE UL(CONFIG_MEMORY_SIZE) |
6 | 6 | ||
7 | /* DMA memory at 0xf6000000 - 0xffdfffff */ | 7 | /* DMA memory at 0xf6000000 - 0xffdfffff */ |
diff --git a/arch/arm/mach-tcc8k/board-tcc8000-sdk.c b/arch/arm/mach-tcc8k/board-tcc8000-sdk.c index 7991415e666b..fb6426ddeb77 100644 --- a/arch/arm/mach-tcc8k/board-tcc8000-sdk.c +++ b/arch/arm/mach-tcc8k/board-tcc8000-sdk.c | |||
@@ -54,7 +54,7 @@ static void __init tcc8k_map_io(void) | |||
54 | } | 54 | } |
55 | 55 | ||
56 | MACHINE_START(TCC8000_SDK, "Telechips TCC8000-SDK Demo Board") | 56 | MACHINE_START(TCC8000_SDK, "Telechips TCC8000-SDK Demo Board") |
57 | .boot_params = PHYS_OFFSET + 0x00000100, | 57 | .boot_params = PLAT_PHYS_OFFSET + 0x00000100, |
58 | .map_io = tcc8k_map_io, | 58 | .map_io = tcc8k_map_io, |
59 | .init_irq = tcc8k_init_irq, | 59 | .init_irq = tcc8k_init_irq, |
60 | .init_machine = tcc8k_init, | 60 | .init_machine = tcc8k_init, |
diff --git a/arch/arm/mach-tegra/include/mach/memory.h b/arch/arm/mach-tegra/include/mach/memory.h index 6151bab62af2..537db3aa81a7 100644 --- a/arch/arm/mach-tegra/include/mach/memory.h +++ b/arch/arm/mach-tegra/include/mach/memory.h | |||
@@ -22,7 +22,7 @@ | |||
22 | #define __MACH_TEGRA_MEMORY_H | 22 | #define __MACH_TEGRA_MEMORY_H |
23 | 23 | ||
24 | /* physical offset of RAM */ | 24 | /* physical offset of RAM */ |
25 | #define PHYS_OFFSET UL(0) | 25 | #define PLAT_PHYS_OFFSET UL(0) |
26 | 26 | ||
27 | #endif | 27 | #endif |
28 | 28 | ||
diff --git a/arch/arm/mach-u300/include/mach/memory.h b/arch/arm/mach-u300/include/mach/memory.h index bf134bcc129d..888e2e351ee1 100644 --- a/arch/arm/mach-u300/include/mach/memory.h +++ b/arch/arm/mach-u300/include/mach/memory.h | |||
@@ -15,17 +15,17 @@ | |||
15 | 15 | ||
16 | #ifdef CONFIG_MACH_U300_DUAL_RAM | 16 | #ifdef CONFIG_MACH_U300_DUAL_RAM |
17 | 17 | ||
18 | #define PHYS_OFFSET UL(0x48000000) | 18 | #define PLAT_PHYS_OFFSET UL(0x48000000) |
19 | #define BOOT_PARAMS_OFFSET (PHYS_OFFSET + 0x100) | 19 | #define BOOT_PARAMS_OFFSET (PHYS_OFFSET + 0x100) |
20 | 20 | ||
21 | #else | 21 | #else |
22 | 22 | ||
23 | #ifdef CONFIG_MACH_U300_2MB_ALIGNMENT_FIX | 23 | #ifdef CONFIG_MACH_U300_2MB_ALIGNMENT_FIX |
24 | #define PHYS_OFFSET (0x28000000 + \ | 24 | #define PLAT_PHYS_OFFSET (0x28000000 + \ |
25 | (CONFIG_MACH_U300_ACCESS_MEM_SIZE - \ | 25 | (CONFIG_MACH_U300_ACCESS_MEM_SIZE - \ |
26 | (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024) | 26 | (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024) |
27 | #else | 27 | #else |
28 | #define PHYS_OFFSET (0x28000000 + \ | 28 | #define PLAT_PHYS_OFFSET (0x28000000 + \ |
29 | (CONFIG_MACH_U300_ACCESS_MEM_SIZE + \ | 29 | (CONFIG_MACH_U300_ACCESS_MEM_SIZE + \ |
30 | (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024) | 30 | (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024) |
31 | #endif | 31 | #endif |
diff --git a/arch/arm/mach-u300/u300.c b/arch/arm/mach-u300/u300.c index 07c35a846424..48b3b7f39966 100644 --- a/arch/arm/mach-u300/u300.c +++ b/arch/arm/mach-u300/u300.c | |||
@@ -19,9 +19,9 @@ | |||
19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | #include <mach/hardware.h> | 20 | #include <mach/hardware.h> |
21 | #include <mach/platform.h> | 21 | #include <mach/platform.h> |
22 | #include <mach/memory.h> | ||
23 | #include <asm/mach-types.h> | 22 | #include <asm/mach-types.h> |
24 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
24 | #include <asm/memory.h> | ||
25 | 25 | ||
26 | static void __init u300_reserve(void) | 26 | static void __init u300_reserve(void) |
27 | { | 27 | { |
diff --git a/arch/arm/mach-ux500/include/mach/memory.h b/arch/arm/mach-ux500/include/mach/memory.h index 510571a59e25..2ef697a67006 100644 --- a/arch/arm/mach-ux500/include/mach/memory.h +++ b/arch/arm/mach-ux500/include/mach/memory.h | |||
@@ -12,7 +12,7 @@ | |||
12 | /* | 12 | /* |
13 | * Physical DRAM offset. | 13 | * Physical DRAM offset. |
14 | */ | 14 | */ |
15 | #define PHYS_OFFSET UL(0x00000000) | 15 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
16 | #define BUS_OFFSET UL(0x00000000) | 16 | #define BUS_OFFSET UL(0x00000000) |
17 | 17 | ||
18 | #endif | 18 | #endif |
diff --git a/arch/arm/mach-versatile/include/mach/memory.h b/arch/arm/mach-versatile/include/mach/memory.h index 79aeab86b903..dacc9d8e4e6a 100644 --- a/arch/arm/mach-versatile/include/mach/memory.h +++ b/arch/arm/mach-versatile/include/mach/memory.h | |||
@@ -23,6 +23,6 @@ | |||
23 | /* | 23 | /* |
24 | * Physical DRAM offset. | 24 | * Physical DRAM offset. |
25 | */ | 25 | */ |
26 | #define PHYS_OFFSET UL(0x00000000) | 26 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
27 | 27 | ||
28 | #endif | 28 | #endif |
diff --git a/arch/arm/mach-vexpress/ct-ca9x4.c b/arch/arm/mach-vexpress/ct-ca9x4.c index e628402b754c..e9bccc5230c9 100644 --- a/arch/arm/mach-vexpress/ct-ca9x4.c +++ b/arch/arm/mach-vexpress/ct-ca9x4.c | |||
@@ -243,7 +243,7 @@ static void __init ct_ca9x4_init(void) | |||
243 | } | 243 | } |
244 | 244 | ||
245 | MACHINE_START(VEXPRESS, "ARM-Versatile Express CA9x4") | 245 | MACHINE_START(VEXPRESS, "ARM-Versatile Express CA9x4") |
246 | .boot_params = PHYS_OFFSET + 0x00000100, | 246 | .boot_params = PLAT_PHYS_OFFSET + 0x00000100, |
247 | .map_io = ct_ca9x4_map_io, | 247 | .map_io = ct_ca9x4_map_io, |
248 | .init_irq = ct_ca9x4_init_irq, | 248 | .init_irq = ct_ca9x4_init_irq, |
249 | #if 0 | 249 | #if 0 |
diff --git a/arch/arm/mach-vexpress/include/mach/memory.h b/arch/arm/mach-vexpress/include/mach/memory.h index be28232ae639..5b7fcd439d87 100644 --- a/arch/arm/mach-vexpress/include/mach/memory.h +++ b/arch/arm/mach-vexpress/include/mach/memory.h | |||
@@ -20,6 +20,6 @@ | |||
20 | #ifndef __ASM_ARCH_MEMORY_H | 20 | #ifndef __ASM_ARCH_MEMORY_H |
21 | #define __ASM_ARCH_MEMORY_H | 21 | #define __ASM_ARCH_MEMORY_H |
22 | 22 | ||
23 | #define PHYS_OFFSET UL(0x60000000) | 23 | #define PLAT_PHYS_OFFSET UL(0x60000000) |
24 | 24 | ||
25 | #endif | 25 | #endif |
diff --git a/arch/arm/mach-w90x900/include/mach/memory.h b/arch/arm/mach-w90x900/include/mach/memory.h index 971b80702c27..f02905ba7746 100644 --- a/arch/arm/mach-w90x900/include/mach/memory.h +++ b/arch/arm/mach-w90x900/include/mach/memory.h | |||
@@ -18,6 +18,6 @@ | |||
18 | #ifndef __ASM_ARCH_MEMORY_H | 18 | #ifndef __ASM_ARCH_MEMORY_H |
19 | #define __ASM_ARCH_MEMORY_H | 19 | #define __ASM_ARCH_MEMORY_H |
20 | 20 | ||
21 | #define PHYS_OFFSET UL(0x00000000) | 21 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
22 | 22 | ||
23 | #endif | 23 | #endif |
diff --git a/arch/arm/plat-mxc/include/mach/memory.h b/arch/arm/plat-mxc/include/mach/memory.h index 83861408133f..5d51cbb98893 100644 --- a/arch/arm/plat-mxc/include/mach/memory.h +++ b/arch/arm/plat-mxc/include/mach/memory.h | |||
@@ -23,23 +23,23 @@ | |||
23 | 23 | ||
24 | #if !defined(CONFIG_RUNTIME_PHYS_OFFSET) | 24 | #if !defined(CONFIG_RUNTIME_PHYS_OFFSET) |
25 | # if defined CONFIG_ARCH_MX1 | 25 | # if defined CONFIG_ARCH_MX1 |
26 | # define PHYS_OFFSET MX1_PHYS_OFFSET | 26 | # define PLAT_PHYS_OFFSET MX1_PHYS_OFFSET |
27 | # elif defined CONFIG_MACH_MX21 | 27 | # elif defined CONFIG_MACH_MX21 |
28 | # define PHYS_OFFSET MX21_PHYS_OFFSET | 28 | # define PLAT_PHYS_OFFSET MX21_PHYS_OFFSET |
29 | # elif defined CONFIG_ARCH_MX25 | 29 | # elif defined CONFIG_ARCH_MX25 |
30 | # define PHYS_OFFSET MX25_PHYS_OFFSET | 30 | # define PLAT_PHYS_OFFSET MX25_PHYS_OFFSET |
31 | # elif defined CONFIG_MACH_MX27 | 31 | # elif defined CONFIG_MACH_MX27 |
32 | # define PHYS_OFFSET MX27_PHYS_OFFSET | 32 | # define PLAT_PHYS_OFFSET MX27_PHYS_OFFSET |
33 | # elif defined CONFIG_ARCH_MX3 | 33 | # elif defined CONFIG_ARCH_MX3 |
34 | # define PHYS_OFFSET MX3x_PHYS_OFFSET | 34 | # define PLAT_PHYS_OFFSET MX3x_PHYS_OFFSET |
35 | # elif defined CONFIG_ARCH_MXC91231 | 35 | # elif defined CONFIG_ARCH_MXC91231 |
36 | # define PHYS_OFFSET MXC91231_PHYS_OFFSET | 36 | # define PLAT_PHYS_OFFSET MXC91231_PHYS_OFFSET |
37 | # elif defined CONFIG_ARCH_MX50 | 37 | # elif defined CONFIG_ARCH_MX50 |
38 | # define PHYS_OFFSET MX50_PHYS_OFFSET | 38 | # define PLAT_PHYS_OFFSET MX50_PHYS_OFFSET |
39 | # elif defined CONFIG_ARCH_MX51 | 39 | # elif defined CONFIG_ARCH_MX51 |
40 | # define PHYS_OFFSET MX51_PHYS_OFFSET | 40 | # define PLAT_PHYS_OFFSET MX51_PHYS_OFFSET |
41 | # elif defined CONFIG_ARCH_MX53 | 41 | # elif defined CONFIG_ARCH_MX53 |
42 | # define PHYS_OFFSET MX53_PHYS_OFFSET | 42 | # define PLAT_PHYS_OFFSET MX53_PHYS_OFFSET |
43 | # endif | 43 | # endif |
44 | #endif | 44 | #endif |
45 | 45 | ||
diff --git a/arch/arm/plat-omap/include/plat/memory.h b/arch/arm/plat-omap/include/plat/memory.h index f8d922fb5584..e6720aa2d553 100644 --- a/arch/arm/plat-omap/include/plat/memory.h +++ b/arch/arm/plat-omap/include/plat/memory.h | |||
@@ -37,9 +37,9 @@ | |||
37 | * Physical DRAM offset. | 37 | * Physical DRAM offset. |
38 | */ | 38 | */ |
39 | #if defined(CONFIG_ARCH_OMAP1) | 39 | #if defined(CONFIG_ARCH_OMAP1) |
40 | #define PHYS_OFFSET UL(0x10000000) | 40 | #define PLAT_PHYS_OFFSET UL(0x10000000) |
41 | #else | 41 | #else |
42 | #define PHYS_OFFSET UL(0x80000000) | 42 | #define PLAT_PHYS_OFFSET UL(0x80000000) |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | /* | 45 | /* |
diff --git a/arch/arm/plat-omap/include/plat/serial.h b/arch/arm/plat-omap/include/plat/serial.h index cec5d56db2eb..8ff605c83aca 100644 --- a/arch/arm/plat-omap/include/plat/serial.h +++ b/arch/arm/plat-omap/include/plat/serial.h | |||
@@ -27,7 +27,7 @@ | |||
27 | * 2. We assume printascii is called at least once before paging_init, | 27 | * 2. We assume printascii is called at least once before paging_init, |
28 | * and addruart has a chance to read OMAP_UART_INFO | 28 | * and addruart has a chance to read OMAP_UART_INFO |
29 | */ | 29 | */ |
30 | #define OMAP_UART_INFO (PHYS_OFFSET + 0x3ffc) | 30 | #define OMAP_UART_INFO (PLAT_PHYS_OFFSET + 0x3ffc) |
31 | 31 | ||
32 | /* OMAP1 serial ports */ | 32 | /* OMAP1 serial ports */ |
33 | #define OMAP1_UART1_BASE 0xfffb0000 | 33 | #define OMAP1_UART1_BASE 0xfffb0000 |
diff --git a/arch/arm/plat-spear/include/plat/memory.h b/arch/arm/plat-spear/include/plat/memory.h index 27a4aba77343..7e3599e1104e 100644 --- a/arch/arm/plat-spear/include/plat/memory.h +++ b/arch/arm/plat-spear/include/plat/memory.h | |||
@@ -15,6 +15,6 @@ | |||
15 | #define __PLAT_MEMORY_H | 15 | #define __PLAT_MEMORY_H |
16 | 16 | ||
17 | /* Physical DRAM offset */ | 17 | /* Physical DRAM offset */ |
18 | #define PHYS_OFFSET UL(0x00000000) | 18 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
19 | 19 | ||
20 | #endif /* __PLAT_MEMORY_H */ | 20 | #endif /* __PLAT_MEMORY_H */ |
diff --git a/arch/arm/plat-stmp3xxx/include/mach/memory.h b/arch/arm/plat-stmp3xxx/include/mach/memory.h index 7b875a07a1a7..61fa54882e12 100644 --- a/arch/arm/plat-stmp3xxx/include/mach/memory.h +++ b/arch/arm/plat-stmp3xxx/include/mach/memory.h | |||
@@ -17,6 +17,6 @@ | |||
17 | /* | 17 | /* |
18 | * Physical DRAM offset. | 18 | * Physical DRAM offset. |
19 | */ | 19 | */ |
20 | #define PHYS_OFFSET UL(0x40000000) | 20 | #define PLAT_PHYS_OFFSET UL(0x40000000) |
21 | 21 | ||
22 | #endif | 22 | #endif |
diff --git a/arch/arm/plat-tcc/include/mach/memory.h b/arch/arm/plat-tcc/include/mach/memory.h index cd91ba8a670b..28a6e0cd13b3 100644 --- a/arch/arm/plat-tcc/include/mach/memory.h +++ b/arch/arm/plat-tcc/include/mach/memory.h | |||
@@ -13,6 +13,6 @@ | |||
13 | /* | 13 | /* |
14 | * Physical DRAM offset. | 14 | * Physical DRAM offset. |
15 | */ | 15 | */ |
16 | #define PHYS_OFFSET UL(0x20000000) | 16 | #define PLAT_PHYS_OFFSET UL(0x20000000) |
17 | 17 | ||
18 | #endif | 18 | #endif |