diff options
author | Jamie Iles <jamie@jamieiles.com> | 2011-12-12 21:21:39 +0100 |
---|---|---|
committer | Jamie Iles <jamie@jamieiles.com> | 2011-12-18 11:48:20 +0100 |
commit | 8f37a0b49656ed961598351da3ebdd89f2d2e5b4 (patch) | |
tree | 198dd1837c1141b09c2e2acecd713664e393f0a4 /arch/arm/mach-picoxcell/common.c | |
parent | ARM: picoxcell: don't reserve irq_descs (diff) | |
download | linux-8f37a0b49656ed961598351da3ebdd89f2d2e5b4.tar.xz linux-8f37a0b49656ed961598351da3ebdd89f2d2e5b4.zip |
ARM: picoxcell: move io mappings to common.c
Now that we have lost our machine specific ioremap() we just have one
mapping that covers all peripherals. Move this to common.c to simplify
things a little.
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Diffstat (limited to 'arch/arm/mach-picoxcell/common.c')
-rw-r--r-- | arch/arm/mach-picoxcell/common.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-picoxcell/common.c b/arch/arm/mach-picoxcell/common.c index d34b3335801e..febee47bc116 100644 --- a/arch/arm/mach-picoxcell/common.c +++ b/arch/arm/mach-picoxcell/common.c @@ -16,12 +16,25 @@ #include <asm/mach/arch.h> #include <asm/hardware/vic.h> +#include <asm/mach/map.h> #include <mach/map.h> #include <mach/picoxcell_soc.h> #include "common.h" +static struct map_desc io_map __initdata = { + .virtual = PHYS_TO_IO(PICOXCELL_PERIPH_BASE), + .pfn = __phys_to_pfn(PICOXCELL_PERIPH_BASE), + .length = PICOXCELL_PERIPH_LENGTH, + .type = MT_DEVICE, +}; + +static void __init picoxcell_map_io(void) +{ + iotable_init(&io_map, 1); +} + static void __init picoxcell_init_machine(void) { of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |