2 * arch/arm/mach-at91rm9200/at91rm9200.c
4 * Copyright (C) 2005 SAN People
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
13 #include <linux/config.h>
14 #include <linux/module.h>
16 #include <asm/mach/arch.h>
17 #include <asm/mach/map.h>
19 #include <asm/hardware.h>
22 static struct map_desc at91rm9200_io_desc[] __initdata = {
24 .virtual = AT91_VA_BASE_SYS,
25 .pfn = __phys_to_pfn(AT91_BASE_SYS),
29 .virtual = AT91_VA_BASE_SPI,
30 .pfn = __phys_to_pfn(AT91_BASE_SPI),
34 .virtual = AT91_VA_BASE_SSC2,
35 .pfn = __phys_to_pfn(AT91_BASE_SSC2),
39 .virtual = AT91_VA_BASE_SSC1,
40 .pfn = __phys_to_pfn(AT91_BASE_SSC1),
44 .virtual = AT91_VA_BASE_SSC0,
45 .pfn = __phys_to_pfn(AT91_BASE_SSC0),
49 .virtual = AT91_VA_BASE_US3,
50 .pfn = __phys_to_pfn(AT91_BASE_US3),
54 .virtual = AT91_VA_BASE_US2,
55 .pfn = __phys_to_pfn(AT91_BASE_US2),
59 .virtual = AT91_VA_BASE_US1,
60 .pfn = __phys_to_pfn(AT91_BASE_US1),
64 .virtual = AT91_VA_BASE_US0,
65 .pfn = __phys_to_pfn(AT91_BASE_US0),
69 .virtual = AT91_VA_BASE_EMAC,
70 .pfn = __phys_to_pfn(AT91_BASE_EMAC),
74 .virtual = AT91_VA_BASE_TWI,
75 .pfn = __phys_to_pfn(AT91_BASE_TWI),
79 .virtual = AT91_VA_BASE_MCI,
80 .pfn = __phys_to_pfn(AT91_BASE_MCI),
84 .virtual = AT91_VA_BASE_UDP,
85 .pfn = __phys_to_pfn(AT91_BASE_UDP),
89 .virtual = AT91_VA_BASE_TCB1,
90 .pfn = __phys_to_pfn(AT91_BASE_TCB1),
94 .virtual = AT91_VA_BASE_TCB0,
95 .pfn = __phys_to_pfn(AT91_BASE_TCB0),
99 .virtual = AT91_SRAM_VIRT_BASE,
100 .pfn = __phys_to_pfn(AT91_SRAM_BASE),
101 .length = AT91_SRAM_SIZE,
106 void __init at91rm9200_map_io(void)
108 iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc));