aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-zynq/common.c
diff options
context:
space:
mode:
authorJosh Cartwright <josh.cartwright@ni.com>2012-10-21 22:15:37 -0400
committerMichal Simek <michal.simek@xilinx.com>2012-10-29 03:54:56 -0400
commitf58007762f537ba13674a3138b3f4c20fff1cba9 (patch)
treea88498fd3c86be7ca74ce90d9a0bf6f8e7febeab /arch/arm/mach-zynq/common.c
parentf7977939e956bdf6558ae6f4b743653db9f5c291 (diff)
zynq: move static peripheral mappings
Shifting them up into the vmalloc region prevents the following warning, when booting a zynq qemu target with more than 512mb of RAM: BUG: mapping for 0xe0000000 at 0xe0000000 out of vmalloc space In addition, it allows for reuse of these mappings when the proper drivers issue requests via ioremap(). There are currently unknown issues with the early uart mapping. For now, the uart will be mapped to a known working address. Signed-off-by: Josh Cartwright <josh.cartwright@ni.com> Cc: John Linn <john.linn@xilinx.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynq/common.c')
-rw-r--r--arch/arm/mach-zynq/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-zynq/common.c b/arch/arm/mach-zynq/common.c
index ba48f067d8f2..ba8d14f78d4d 100644
--- a/arch/arm/mach-zynq/common.c
+++ b/arch/arm/mach-zynq/common.c
@@ -73,12 +73,12 @@ static struct map_desc io_desc[] __initdata = {
73 { 73 {
74 .virtual = TTC0_VIRT, 74 .virtual = TTC0_VIRT,
75 .pfn = __phys_to_pfn(TTC0_PHYS), 75 .pfn = __phys_to_pfn(TTC0_PHYS),
76 .length = SZ_4K, 76 .length = TTC0_SIZE,
77 .type = MT_DEVICE, 77 .type = MT_DEVICE,
78 }, { 78 }, {
79 .virtual = SCU_PERIPH_VIRT, 79 .virtual = SCU_PERIPH_VIRT,
80 .pfn = __phys_to_pfn(SCU_PERIPH_PHYS), 80 .pfn = __phys_to_pfn(SCU_PERIPH_PHYS),
81 .length = SZ_8K, 81 .length = SCU_PERIPH_SIZE,
82 .type = MT_DEVICE, 82 .type = MT_DEVICE,
83 }, 83 },
84 84
@@ -86,7 +86,7 @@ static struct map_desc io_desc[] __initdata = {
86 { 86 {
87 .virtual = UART0_VIRT, 87 .virtual = UART0_VIRT,
88 .pfn = __phys_to_pfn(UART0_PHYS), 88 .pfn = __phys_to_pfn(UART0_PHYS),
89 .length = SZ_4K, 89 .length = UART0_SIZE,
90 .type = MT_DEVICE, 90 .type = MT_DEVICE,
91 }, 91 },
92#endif 92#endif