2 * arch/arm/mach-at91rm9200/common.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/arch/hardware.h>
21 static struct map_desc at91rm9200_io_desc
[] __initdata
= {
23 .virtual = AT91_VA_BASE_SYS
,
24 .pfn
= __phys_to_pfn(AT91_BASE_SYS
),
28 .virtual = AT91_VA_BASE_SPI
,
29 .pfn
= __phys_to_pfn(AT91_BASE_SPI
),
33 .virtual = AT91_VA_BASE_SSC2
,
34 .pfn
= __phys_to_pfn(AT91_BASE_SSC2
),
38 .virtual = AT91_VA_BASE_SSC1
,
39 .pfn
= __phys_to_pfn(AT91_BASE_SSC1
),
43 .virtual = AT91_VA_BASE_SSC0
,
44 .pfn
= __phys_to_pfn(AT91_BASE_SSC0
),
48 .virtual = AT91_VA_BASE_US3
,
49 .pfn
= __phys_to_pfn(AT91_BASE_US3
),
53 .virtual = AT91_VA_BASE_US2
,
54 .pfn
= __phys_to_pfn(AT91_BASE_US2
),
58 .virtual = AT91_VA_BASE_US1
,
59 .pfn
= __phys_to_pfn(AT91_BASE_US1
),
63 .virtual = AT91_VA_BASE_US0
,
64 .pfn
= __phys_to_pfn(AT91_BASE_US0
),
68 .virtual = AT91_VA_BASE_EMAC
,
69 .pfn
= __phys_to_pfn(AT91_BASE_EMAC
),
73 .virtual = AT91_VA_BASE_TWI
,
74 .pfn
= __phys_to_pfn(AT91_BASE_TWI
),
78 .virtual = AT91_VA_BASE_MCI
,
79 .pfn
= __phys_to_pfn(AT91_BASE_MCI
),
83 .virtual = AT91_VA_BASE_UDP
,
84 .pfn
= __phys_to_pfn(AT91_BASE_UDP
),
88 .virtual = AT91_VA_BASE_TCB1
,
89 .pfn
= __phys_to_pfn(AT91_BASE_TCB1
),
93 .virtual = AT91_VA_BASE_TCB0
,
94 .pfn
= __phys_to_pfn(AT91_BASE_TCB0
),
100 void __init
at91rm9200_map_io(void)
102 iotable_init(at91rm9200_io_desc
, ARRAY_SIZE(at91rm9200_io_desc
));
106 unsigned long at91_master_clock
;
108 EXPORT_SYMBOL(at91_master_clock
);
111 int at91_serial_map
[AT91_NR_UART
];
112 int at91_console_port
;
114 EXPORT_SYMBOL(at91_serial_map
);
115 EXPORT_SYMBOL(at91_console_port
);