diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-04 13:07:14 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-17 18:26:55 -0500 |
commit | f4117ac9e237b74afdf5e001d5ea26a4d15e9847 (patch) | |
tree | dce3ccceda23d4bf620ec3d025a14773c7c938a8 | |
parent | 6fc31d54443bdc25a8166be15e3920a7e39d195d (diff) |
ARM: P2V: separate PHYS_OFFSET from platform definitions
This uncouple PHYS_OFFSET from the platform definitions, thereby
facilitating run-time computation of the physical memory offset.
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Magnus Damm <damm@opensource.se>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Wan ZongShun <mcuos.com@gmail.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Acked-by: Jiandong Zheng <jdzheng@broadcom.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
65 files changed, 88 insertions, 86 deletions
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index d0ee74b7cf8..2efec578a62 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h | |||
@@ -24,6 +24,8 @@ | |||
24 | */ | 24 | */ |
25 | #define UL(x) _AC(x, UL) | 25 | #define UL(x) _AC(x, UL) |
26 | 26 | ||
27 | #define PHYS_OFFSET PLAT_PHYS_OFFSET | ||
28 | |||
27 | #ifdef CONFIG_MMU | 29 | #ifdef CONFIG_MMU |
28 | 30 | ||
29 | /* | 31 | /* |
diff --git a/arch/arm/kernel/tcm.c b/arch/arm/kernel/tcm.c index 26685c2f7a4..f5cf660eefc 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/mach-aaec2000/include/mach/memory.h b/arch/arm/mach-aaec2000/include/mach/memory.h index 4f93c567a35..4a10bf0bd36 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 14f4ef4b6a9..c2cfe504064 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 447eb340c61..8bf3564fba5 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 114f942bb4f..15162e4c75f 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 f45c8e892cb..3a032a67725 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 3b6b769b7a2..dc16c5c5d86 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 22eb97c1c30..78822723f38 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 d6687207494..bbc93fee6c7 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 0ca66d080c6..8e49066ad85 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 554064e9030..c9400cf0051 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 8d64f457408..5c6df377f96 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 2d14d5bf1f9..a50915f764d 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 ef4c1e26f18..9d368765146 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 991f24d2c11..334d5e27188 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 3ad45531886..1afa99ef97f 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 c30f6450ad5..169cc239f76 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 a30a96aa6d2..8e1daf7006b 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 98e3471be15..5f0c4fd4076 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 6ef65d813f1..6cf0704e946 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 0136eaa2922..6d388c9d0e2 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 45431e13146..4600b44e3ad 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 bace9a681ad..f7e1b9bce34 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 edb8f5faf5d..f77bde80fe4 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 2ed7e6e732c..66366657a87 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 044e1acecbe..a647dd624af 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 bdb21d70714..d68b50a2d6a 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-msm7x30.c b/arch/arm/mach-msm/board-msm7x30.c index 6f3b9735e97..decbf80b429 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 | ||
diff --git a/arch/arm/mach-msm/include/mach/memory.h b/arch/arm/mach-msm/include/mach/memory.h index 070e17d237f..176875df241 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 e663042d307..a648c51f2e4 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 a5f3eb24e4d..df1a6ce8e3e 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 9a363f297f9..59561496c36 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 1e5689d98ec..d3325211ba6 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 6107193adbf..5c65aee6e7a 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 323ab0db3f7..ef9864b002a 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-orion5x/include/mach/memory.h b/arch/arm/mach-orion5x/include/mach/memory.h index 52a2955d0f8..6769917882f 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 0e877008105..1275db61cee 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/include/mach/memory.h b/arch/arm/mach-pxa/include/mach/memory.h index 92361a66b22..7f68724dcc2 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 5dafc157b27..e05fc2c4c08 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-rpc/include/mach/memory.h b/arch/arm/mach-rpc/include/mach/memory.h index 78191bf2519..18a221093bf 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 cf5901ffd38..3f33670dd01 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 6f1e5871ae4..f92b97b89c0 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 7d74fd5c8d6..7d208a71b17 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 42cc54e2ee3..4760cdae1eb 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 9ddd877ba2e..cfe259dded3 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 1b036b0a24c..365a6eb4b88 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 4b60d18179f..bda4e79fd5f 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 d503e0c4ce4..7b5fcf0da0c 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 1dffb482324..470b01bf861 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 128a1dfa96b..a44da6a2916 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 d9c4812f1c3..9afb1700000 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 377584e57e0..ad00c3c258f 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-tegra/include/mach/memory.h b/arch/arm/mach-tegra/include/mach/memory.h index 6151bab62af..537db3aa81a 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 bf134bcc129..888e2e351ee 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 07c35a84642..48b3b7f3996 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 510571a59e2..2ef697a6700 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 79aeab86b90..dacc9d8e4e6 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/include/mach/memory.h b/arch/arm/mach-vexpress/include/mach/memory.h index be28232ae63..5b7fcd439d8 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 971b80702c2..f02905ba774 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 83861408133..5d51cbb9889 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 f8d922fb558..e6720aa2d55 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-spear/include/plat/memory.h b/arch/arm/plat-spear/include/plat/memory.h index 27a4aba7734..7e3599e1104 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 7b875a07a1a..61fa54882e1 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 cd91ba8a670..28a6e0cd13b 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 |