]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
[ARM] Fix Realview machine for patch 3016/1
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Wed, 2 Nov 2005 14:14:37 +0000 (14:14 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 2 Nov 2005 14:14:37 +0000 (14:14 +0000)
3016/1 changed the map_desc structure to take a PFN instead of a
physical address.  Fixup Realview machine support for this change.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-realview/realview_eb.c

index 01b264be5029a85f061158d57dbe817cf09196f4..267bb07e39b73b57375049db5086ddf2b1b4a574 100644 (file)
 #include "clock.h"
 
 static struct map_desc realview_eb_io_desc[] __initdata = {
- { IO_ADDRESS(REALVIEW_SYS_BASE),      REALVIEW_SYS_BASE,      SZ_4K,  MT_DEVICE },
- { IO_ADDRESS(REALVIEW_GIC_CPU_BASE),  REALVIEW_GIC_CPU_BASE,  SZ_4K,  MT_DEVICE },
- { IO_ADDRESS(REALVIEW_GIC_DIST_BASE), REALVIEW_GIC_DIST_BASE, SZ_4K,  MT_DEVICE },
- { IO_ADDRESS(REALVIEW_SCTL_BASE),     REALVIEW_SCTL_BASE,     SZ_4K,  MT_DEVICE },
- { IO_ADDRESS(REALVIEW_TIMER0_1_BASE), REALVIEW_TIMER0_1_BASE, SZ_4K,  MT_DEVICE },
- { IO_ADDRESS(REALVIEW_TIMER2_3_BASE), REALVIEW_TIMER2_3_BASE, SZ_4K,  MT_DEVICE },
+       {
+               .virtual        = IO_ADDRESS(REALVIEW_SYS_BASE),
+               .pfn            = __phys_to_pfn(REALVIEW_SYS_BASE),
+               .length         = SZ_4K,
+               .type           = MT_DEVICE,
+       }, {
+               .virtual        = IO_ADDRESS(REALVIEW_GIC_CPU_BASE),
+               .pfn            = __phys_to_pfn(REALVIEW_GIC_CPU_BASE),
+               .length         = SZ_4K,
+               .type           = MT_DEVICE,
+       }, {
+               .virtual        = IO_ADDRESS(REALVIEW_GIC_DIST_BASE),
+               .pfn            = __phys_to_pfn(REALVIEW_GIC_DIST_BASE),
+               .length         = SZ_4K,
+               .type           = MT_DEVICE,
+       }, {
+               .virtual        = IO_ADDRESS(REALVIEW_SCTL_BASE),
+               .pfn            = __phys_to_pfn(REALVIEW_SCTL_BASE),
+               .length         = SZ_4K,
+               .type           = MT_DEVICE,
+       }, {
+               .virtual        = IO_ADDRESS(REALVIEW_TIMER0_1_BASE),
+               .pfn            = __phys_to_pfn(REALVIEW_TIMER0_1_BASE),
+               .length         = SZ_4K,
+               .type           = MT_DEVICE,
+       }, {
+               .virtual        = IO_ADDRESS(REALVIEW_TIMER2_3_BASE),
+               .pfn            = __phys_to_pfn(REALVIEW_TIMER2_3_BASE),
+               .length         = SZ_4K,
+               .type           = MT_DEVICE,
+       },
 #ifdef CONFIG_DEBUG_LL
- { IO_ADDRESS(REALVIEW_UART0_BASE),    REALVIEW_UART0_BASE,    SZ_4K,  MT_DEVICE },
+       {
+               .virtual        = IO_ADDRESS(REALVIEW_UART0_BASE),
+               .pfn            = __phys_to_pfn(REALVIEW_UART0_BASE),
+               .length         = SZ_4K,
+               .type           = MT_DEVICE,
+       }
 #endif
 };