aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-07-11 07:00:37 -0400
committerOlof Johansson <olof@lixom.net>2014-07-12 12:51:40 -0400
commitb10f1c836c4e8c2372d14953a17aa5b9744eb55c (patch)
treedcce5fa976ccef53bb62fcdcbe81cc7e07082763 /arch/arm/mach-pxa
parent0e32986c0f51d585b4980a0f01c269627f51b78b (diff)
ARM: pxa: Move UNCACHED_PHYS_0 mapping from generic.c to pxa2[57]x.c
The UNCACHED_PHYS_0 mapping is only needed on PXA25x and PXA27x platforms. Move it to pxa25x.c and pxa27x.c to avoid wasting vmalloc space on PXA3xx. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/generic.c5
-rw-r--r--arch/arm/mach-pxa/pxa25x.c5
-rw-r--r--arch/arm/mach-pxa/pxa27x.c5
3 files changed, 10 insertions, 5 deletions
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c
index 68a75fe16020..b31e101cad9b 100644
--- a/arch/arm/mach-pxa/generic.c
+++ b/arch/arm/mach-pxa/generic.c
@@ -83,11 +83,6 @@ static struct map_desc common_io_desc[] __initdata = {
83 .pfn = __phys_to_pfn(PERIPH_PHYS), 83 .pfn = __phys_to_pfn(PERIPH_PHYS),
84 .length = PERIPH_SIZE, 84 .length = PERIPH_SIZE,
85 .type = MT_DEVICE 85 .type = MT_DEVICE
86 }, { /* UNCACHED_PHYS_0 */
87 .virtual = UNCACHED_PHYS_0,
88 .pfn = __phys_to_pfn(0x00000000),
89 .length = UNCACHED_PHYS_0_SIZE,
90 .type = MT_DEVICE
91 } 86 }
92}; 87};
93 88
diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c
index 926c506f99bc..66e4a2b6316e 100644
--- a/arch/arm/mach-pxa/pxa25x.c
+++ b/arch/arm/mach-pxa/pxa25x.c
@@ -333,6 +333,11 @@ static struct map_desc pxa25x_io_desc[] __initdata = {
333 .pfn = __phys_to_pfn(PXA2XX_SMEMC_BASE), 333 .pfn = __phys_to_pfn(PXA2XX_SMEMC_BASE),
334 .length = SMEMC_SIZE, 334 .length = SMEMC_SIZE,
335 .type = MT_DEVICE 335 .type = MT_DEVICE
336 }, { /* UNCACHED_PHYS_0 */
337 .virtual = UNCACHED_PHYS_0,
338 .pfn = __phys_to_pfn(0x00000000),
339 .length = UNCACHED_PHYS_0_SIZE,
340 .type = MT_DEVICE
336 }, 341 },
337}; 342};
338 343
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c
index 440564458767..6cc0f4656d10 100644
--- a/arch/arm/mach-pxa/pxa27x.c
+++ b/arch/arm/mach-pxa/pxa27x.c
@@ -409,6 +409,11 @@ static struct map_desc pxa27x_io_desc[] __initdata = {
409 .pfn = __phys_to_pfn(IMEMC_PHYS), 409 .pfn = __phys_to_pfn(IMEMC_PHYS),
410 .length = IMEMC_SIZE, 410 .length = IMEMC_SIZE,
411 .type = MT_DEVICE 411 .type = MT_DEVICE
412 }, { /* UNCACHED_PHYS_0 */
413 .virtual = UNCACHED_PHYS_0,
414 .pfn = __phys_to_pfn(0x00000000),
415 .length = UNCACHED_PHYS_0_SIZE,
416 .type = MT_DEVICE
412 }, 417 },
413}; 418};
414 419