Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b10f1c83 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Olof Johansson
Browse files

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: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarNicolas Pitre <nico@linaro.org>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 0e32986c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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
	}
};

+5 −0
Original line number Diff line number Diff line
@@ -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
	},
};

+5 −0
Original line number Diff line number Diff line
@@ -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
	},
};