ARM: pxa: Move UNCACHED_PHYS_0 mapping from generic.c to pxa2[57]x.c
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 11 Jul 2014 11:00:37 +0000 (13:00 +0200)
committerOlof Johansson <olof@lixom.net>
Sat, 12 Jul 2014 16:51:40 +0000 (09:51 -0700)
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>
arch/arm/mach-pxa/generic.c
arch/arm/mach-pxa/pxa25x.c
arch/arm/mach-pxa/pxa27x.c

index 68a75fe160209af40ab046489491dabb6a7a71b3..b31e101cad9bc227eb36941c94ec33bebcd1dc69 100644 (file)
@@ -83,11 +83,6 @@ static struct map_desc common_io_desc[] __initdata = {
                .pfn            = __phys_to_pfn(PERIPH_PHYS),
                .length         = PERIPH_SIZE,
                .type           = MT_DEVICE
-       }, {    /* UNCACHED_PHYS_0 */
-               .virtual        = UNCACHED_PHYS_0,
-               .pfn            = __phys_to_pfn(0x00000000),
-               .length         = UNCACHED_PHYS_0_SIZE,
-               .type           = MT_DEVICE
        }
 };
 
index 926c506f99bc3868e63b1dc076fc2d45232683c7..66e4a2b6316ea650d02aace1fcc4dfae7e5a8909 100644 (file)
@@ -333,6 +333,11 @@ static struct map_desc pxa25x_io_desc[] __initdata = {
                .pfn            = __phys_to_pfn(PXA2XX_SMEMC_BASE),
                .length         = SMEMC_SIZE,
                .type           = MT_DEVICE
+       }, {    /* UNCACHED_PHYS_0 */
+               .virtual        = UNCACHED_PHYS_0,
+               .pfn            = __phys_to_pfn(0x00000000),
+               .length         = UNCACHED_PHYS_0_SIZE,
+               .type           = MT_DEVICE
        },
 };
 
index 4405644587678ad8c621236ce83f79cefe8da33b..6cc0f4656d10dc529784461670df149ccf4748d6 100644 (file)
@@ -409,6 +409,11 @@ static struct map_desc pxa27x_io_desc[] __initdata = {
                .pfn            = __phys_to_pfn(IMEMC_PHYS),
                .length         = IMEMC_SIZE,
                .type           = MT_DEVICE
+       }, {    /* UNCACHED_PHYS_0 */
+               .virtual        = UNCACHED_PHYS_0,
+               .pfn            = __phys_to_pfn(0x00000000),
+               .length         = UNCACHED_PHYS_0_SIZE,
+               .type           = MT_DEVICE
        },
 };