diff options
Diffstat (limited to 'arch/arm/mach-pxa/pxa27x.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa27x.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index d1fbf29d561c..71dbee42edf9 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | #include <linux/sysdev.h> | 19 | #include <linux/sysdev.h> |
20 | 20 | ||
21 | #include <asm/mach/map.h> | ||
21 | #include <mach/hardware.h> | 22 | #include <mach/hardware.h> |
22 | #include <asm/irq.h> | 23 | #include <asm/irq.h> |
23 | #include <mach/irqs.h> | 24 | #include <mach/irqs.h> |
@@ -370,6 +371,27 @@ void __init pxa27x_init_irq(void) | |||
370 | pxa_init_gpio(IRQ_GPIO_2_x, 2, 120, pxa27x_set_wake); | 371 | pxa_init_gpio(IRQ_GPIO_2_x, 2, 120, pxa27x_set_wake); |
371 | } | 372 | } |
372 | 373 | ||
374 | static struct map_desc pxa27x_io_desc[] __initdata = { | ||
375 | { /* Mem Ctl */ | ||
376 | .virtual = 0xf6000000, | ||
377 | .pfn = __phys_to_pfn(0x48000000), | ||
378 | .length = 0x00200000, | ||
379 | .type = MT_DEVICE | ||
380 | }, { /* IMem ctl */ | ||
381 | .virtual = 0xfe000000, | ||
382 | .pfn = __phys_to_pfn(0x58000000), | ||
383 | .length = 0x00100000, | ||
384 | .type = MT_DEVICE | ||
385 | }, | ||
386 | }; | ||
387 | |||
388 | void __init pxa27x_map_io(void) | ||
389 | { | ||
390 | pxa_map_io(); | ||
391 | iotable_init(ARRAY_AND_SIZE(pxa27x_io_desc)); | ||
392 | pxa27x_get_clk_frequency_khz(1); | ||
393 | } | ||
394 | |||
373 | /* | 395 | /* |
374 | * device registration specific to PXA27x. | 396 | * device registration specific to PXA27x. |
375 | */ | 397 | */ |