diff options
Diffstat (limited to 'arch/arm/mach-pxa/pxa3xx.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa3xx.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index d1c747cdacf8..5480a94e6469 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/io.h> | 22 | #include <linux/io.h> |
23 | #include <linux/sysdev.h> | 23 | #include <linux/sysdev.h> |
24 | 24 | ||
25 | #include <asm/mach/map.h> | ||
25 | #include <mach/hardware.h> | 26 | #include <mach/hardware.h> |
26 | #include <mach/gpio.h> | 27 | #include <mach/gpio.h> |
27 | #include <mach/pxa3xx-regs.h> | 28 | #include <mach/pxa3xx-regs.h> |
@@ -580,6 +581,22 @@ void __init pxa3xx_init_irq(void) | |||
580 | pxa_init_gpio(IRQ_GPIO_2_x, 2, 127, NULL); | 581 | pxa_init_gpio(IRQ_GPIO_2_x, 2, 127, NULL); |
581 | } | 582 | } |
582 | 583 | ||
584 | static struct map_desc pxa3xx_io_desc[] __initdata = { | ||
585 | { /* Mem Ctl */ | ||
586 | .virtual = 0xf6000000, | ||
587 | .pfn = __phys_to_pfn(0x4a000000), | ||
588 | .length = 0x00200000, | ||
589 | .type = MT_DEVICE | ||
590 | } | ||
591 | }; | ||
592 | |||
593 | void __init pxa3xx_map_io(void) | ||
594 | { | ||
595 | pxa_map_io(); | ||
596 | iotable_init(ARRAY_AND_SIZE(pxa3xx_io_desc)); | ||
597 | pxa3xx_get_clk_frequency_khz(1); | ||
598 | } | ||
599 | |||
583 | /* | 600 | /* |
584 | * device registration specific to PXA3xx. | 601 | * device registration specific to PXA3xx. |
585 | */ | 602 | */ |