Merge omap tree
[linux-2.6] / arch / arm / mach-at91rm9200 / at91rm9200.c
1 /*
2  * arch/arm/mach-at91rm9200/at91rm9200.c
3  *
4  *  Copyright (C) 2005 SAN People
5  *
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.
10  *
11  */
12
13 #include <linux/config.h>
14 #include <linux/module.h>
15
16 #include <asm/mach/arch.h>
17 #include <asm/mach/map.h>
18
19 #include <asm/hardware.h>
20 #include "generic.h"
21
22 static struct map_desc at91rm9200_io_desc[] __initdata = {
23         {
24                 .virtual        = AT91_VA_BASE_SYS,
25                 .pfn            = __phys_to_pfn(AT91_BASE_SYS),
26                 .length         = SZ_4K,
27                 .type           = MT_DEVICE,
28         }, {
29                 .virtual        = AT91_VA_BASE_SPI,
30                 .pfn            = __phys_to_pfn(AT91_BASE_SPI),
31                 .length         = SZ_16K,
32                 .type           = MT_DEVICE,
33         }, {
34                 .virtual        = AT91_VA_BASE_SSC2,
35                 .pfn            = __phys_to_pfn(AT91_BASE_SSC2),
36                 .length         = SZ_16K,
37                 .type           = MT_DEVICE,
38         }, {
39                 .virtual        = AT91_VA_BASE_SSC1,
40                 .pfn            = __phys_to_pfn(AT91_BASE_SSC1),
41                 .length         = SZ_16K,
42                 .type           = MT_DEVICE,
43         }, {
44                 .virtual        = AT91_VA_BASE_SSC0,
45                 .pfn            = __phys_to_pfn(AT91_BASE_SSC0),
46                 .length         = SZ_16K,
47                 .type           = MT_DEVICE,
48         }, {
49                 .virtual        = AT91_VA_BASE_US3,
50                 .pfn            = __phys_to_pfn(AT91_BASE_US3),
51                 .length         = SZ_16K,
52                 .type           = MT_DEVICE,
53         }, {
54                 .virtual        = AT91_VA_BASE_US2,
55                 .pfn            = __phys_to_pfn(AT91_BASE_US2),
56                 .length         = SZ_16K,
57                 .type           = MT_DEVICE,
58         }, {
59                 .virtual        = AT91_VA_BASE_US1,
60                 .pfn            = __phys_to_pfn(AT91_BASE_US1),
61                 .length         = SZ_16K,
62                 .type           = MT_DEVICE,
63         }, {
64                 .virtual        = AT91_VA_BASE_US0,
65                 .pfn            = __phys_to_pfn(AT91_BASE_US0),
66                 .length         = SZ_16K,
67                 .type           = MT_DEVICE,
68         }, {
69                 .virtual        = AT91_VA_BASE_EMAC,
70                 .pfn            = __phys_to_pfn(AT91_BASE_EMAC),
71                 .length         = SZ_16K,
72                 .type           = MT_DEVICE,
73         }, {
74                 .virtual        = AT91_VA_BASE_TWI,
75                 .pfn            = __phys_to_pfn(AT91_BASE_TWI),
76                 .length         = SZ_16K,
77                 .type           = MT_DEVICE,
78         }, {
79                 .virtual        = AT91_VA_BASE_MCI,
80                 .pfn            = __phys_to_pfn(AT91_BASE_MCI),
81                 .length         = SZ_16K,
82                 .type           = MT_DEVICE,
83         }, {
84                 .virtual        = AT91_VA_BASE_UDP,
85                 .pfn            = __phys_to_pfn(AT91_BASE_UDP),
86                 .length         = SZ_16K,
87                 .type           = MT_DEVICE,
88         }, {
89                 .virtual        = AT91_VA_BASE_TCB1,
90                 .pfn            = __phys_to_pfn(AT91_BASE_TCB1),
91                 .length         = SZ_16K,
92                 .type           = MT_DEVICE,
93         }, {
94                 .virtual        = AT91_VA_BASE_TCB0,
95                 .pfn            = __phys_to_pfn(AT91_BASE_TCB0),
96                 .length         = SZ_16K,
97                 .type           = MT_DEVICE,
98         }, {
99                 .virtual        = AT91_SRAM_VIRT_BASE,
100                 .pfn            = __phys_to_pfn(AT91_SRAM_BASE),
101                 .length         = AT91_SRAM_SIZE,
102                 .type           = MT_DEVICE,
103         },
104 };
105
106 void __init at91rm9200_map_io(void)
107 {
108         iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc));
109 }
110