diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2011-02-14 02:22:36 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-02-21 23:51:15 -0500 |
commit | 3db3ae5eb94eb8579991174fe66999261b66018d (patch) | |
tree | 5a5dea5a697c1fc13d325b14b642e562cf794136 /arch/arm/mach-exynos4/dev-sysmmu.c | |
parent | 3c31336dc5b7ea5b6d6168a8c38c46dd54d65e95 (diff) |
ARM: EXYNOS4: Update device support
This patch updates device support of EXYNOS4 according to the change of
ARCH name, EXYNOS4.
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos4/dev-sysmmu.c')
-rw-r--r-- | arch/arm/mach-exynos4/dev-sysmmu.c | 189 |
1 files changed, 189 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos4/dev-sysmmu.c b/arch/arm/mach-exynos4/dev-sysmmu.c new file mode 100644 index 000000000000..a10790a614ec --- /dev/null +++ b/arch/arm/mach-exynos4/dev-sysmmu.c | |||
@@ -0,0 +1,189 @@ | |||
1 | /* linux/arch/arm/mach-exynos4/dev-sysmmu.c | ||
2 | * | ||
3 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. | ||
4 | * http://www.samsung.com | ||
5 | * | ||
6 | * EXYNOS4 - System MMU support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/platform_device.h> | ||
14 | #include <linux/dma-mapping.h> | ||
15 | |||
16 | #include <mach/map.h> | ||
17 | #include <mach/irqs.h> | ||
18 | |||
19 | static struct resource exynos4_sysmmu_resource[] = { | ||
20 | [0] = { | ||
21 | .start = EXYNOS4_PA_SYSMMU_MDMA, | ||
22 | .end = EXYNOS4_PA_SYSMMU_MDMA + SZ_64K - 1, | ||
23 | .flags = IORESOURCE_MEM, | ||
24 | }, | ||
25 | [1] = { | ||
26 | .start = IRQ_SYSMMU_MDMA0_0, | ||
27 | .end = IRQ_SYSMMU_MDMA0_0, | ||
28 | .flags = IORESOURCE_IRQ, | ||
29 | }, | ||
30 | [2] = { | ||
31 | .start = EXYNOS4_PA_SYSMMU_SSS, | ||
32 | .end = EXYNOS4_PA_SYSMMU_SSS + SZ_64K - 1, | ||
33 | .flags = IORESOURCE_MEM, | ||
34 | }, | ||
35 | [3] = { | ||
36 | .start = IRQ_SYSMMU_SSS_0, | ||
37 | .end = IRQ_SYSMMU_SSS_0, | ||
38 | .flags = IORESOURCE_IRQ, | ||
39 | }, | ||
40 | [4] = { | ||
41 | .start = EXYNOS4_PA_SYSMMU_FIMC0, | ||
42 | .end = EXYNOS4_PA_SYSMMU_FIMC0 + SZ_64K - 1, | ||
43 | .flags = IORESOURCE_MEM, | ||
44 | }, | ||
45 | [5] = { | ||
46 | .start = IRQ_SYSMMU_FIMC0_0, | ||
47 | .end = IRQ_SYSMMU_FIMC0_0, | ||
48 | .flags = IORESOURCE_IRQ, | ||
49 | }, | ||
50 | [6] = { | ||
51 | .start = EXYNOS4_PA_SYSMMU_FIMC1, | ||
52 | .end = EXYNOS4_PA_SYSMMU_FIMC1 + SZ_64K - 1, | ||
53 | .flags = IORESOURCE_MEM, | ||
54 | }, | ||
55 | [7] = { | ||
56 | .start = IRQ_SYSMMU_FIMC1_0, | ||
57 | .end = IRQ_SYSMMU_FIMC1_0, | ||
58 | .flags = IORESOURCE_IRQ, | ||
59 | }, | ||
60 | [8] = { | ||
61 | .start = EXYNOS4_PA_SYSMMU_FIMC2, | ||
62 | .end = EXYNOS4_PA_SYSMMU_FIMC2 + SZ_64K - 1, | ||
63 | .flags = IORESOURCE_MEM, | ||
64 | }, | ||
65 | [9] = { | ||
66 | .start = IRQ_SYSMMU_FIMC2_0, | ||
67 | .end = IRQ_SYSMMU_FIMC2_0, | ||
68 | .flags = IORESOURCE_IRQ, | ||
69 | }, | ||
70 | [10] = { | ||
71 | .start = EXYNOS4_PA_SYSMMU_FIMC3, | ||
72 | .end = EXYNOS4_PA_SYSMMU_FIMC3 + SZ_64K - 1, | ||
73 | .flags = IORESOURCE_MEM, | ||
74 | }, | ||
75 | [11] = { | ||
76 | .start = IRQ_SYSMMU_FIMC3_0, | ||
77 | .end = IRQ_SYSMMU_FIMC3_0, | ||
78 | .flags = IORESOURCE_IRQ, | ||
79 | }, | ||
80 | [12] = { | ||
81 | .start = EXYNOS4_PA_SYSMMU_JPEG, | ||
82 | .end = EXYNOS4_PA_SYSMMU_JPEG + SZ_64K - 1, | ||
83 | .flags = IORESOURCE_MEM, | ||
84 | }, | ||
85 | [13] = { | ||
86 | .start = IRQ_SYSMMU_JPEG_0, | ||
87 | .end = IRQ_SYSMMU_JPEG_0, | ||
88 | .flags = IORESOURCE_IRQ, | ||
89 | }, | ||
90 | [14] = { | ||
91 | .start = EXYNOS4_PA_SYSMMU_FIMD0, | ||
92 | .end = EXYNOS4_PA_SYSMMU_FIMD0 + SZ_64K - 1, | ||
93 | .flags = IORESOURCE_MEM, | ||
94 | }, | ||
95 | [15] = { | ||
96 | .start = IRQ_SYSMMU_LCD0_M0_0, | ||
97 | .end = IRQ_SYSMMU_LCD0_M0_0, | ||
98 | .flags = IORESOURCE_IRQ, | ||
99 | }, | ||
100 | [16] = { | ||
101 | .start = EXYNOS4_PA_SYSMMU_FIMD1, | ||
102 | .end = EXYNOS4_PA_SYSMMU_FIMD1 + SZ_64K - 1, | ||
103 | .flags = IORESOURCE_MEM, | ||
104 | }, | ||
105 | [17] = { | ||
106 | .start = IRQ_SYSMMU_LCD1_M1_0, | ||
107 | .end = IRQ_SYSMMU_LCD1_M1_0, | ||
108 | .flags = IORESOURCE_IRQ, | ||
109 | }, | ||
110 | [18] = { | ||
111 | .start = EXYNOS4_PA_SYSMMU_PCIe, | ||
112 | .end = EXYNOS4_PA_SYSMMU_PCIe + SZ_64K - 1, | ||
113 | .flags = IORESOURCE_MEM, | ||
114 | }, | ||
115 | [19] = { | ||
116 | .start = IRQ_SYSMMU_PCIE_0, | ||
117 | .end = IRQ_SYSMMU_PCIE_0, | ||
118 | .flags = IORESOURCE_IRQ, | ||
119 | }, | ||
120 | [20] = { | ||
121 | .start = EXYNOS4_PA_SYSMMU_G2D, | ||
122 | .end = EXYNOS4_PA_SYSMMU_G2D + SZ_64K - 1, | ||
123 | .flags = IORESOURCE_MEM, | ||
124 | }, | ||
125 | [21] = { | ||
126 | .start = IRQ_SYSMMU_2D_0, | ||
127 | .end = IRQ_SYSMMU_2D_0, | ||
128 | .flags = IORESOURCE_IRQ, | ||
129 | }, | ||
130 | [22] = { | ||
131 | .start = EXYNOS4_PA_SYSMMU_ROTATOR, | ||
132 | .end = EXYNOS4_PA_SYSMMU_ROTATOR + SZ_64K - 1, | ||
133 | .flags = IORESOURCE_MEM, | ||
134 | }, | ||
135 | [23] = { | ||
136 | .start = IRQ_SYSMMU_ROTATOR_0, | ||
137 | .end = IRQ_SYSMMU_ROTATOR_0, | ||
138 | .flags = IORESOURCE_IRQ, | ||
139 | }, | ||
140 | [24] = { | ||
141 | .start = EXYNOS4_PA_SYSMMU_MDMA2, | ||
142 | .end = EXYNOS4_PA_SYSMMU_MDMA2 + SZ_64K - 1, | ||
143 | .flags = IORESOURCE_MEM, | ||
144 | }, | ||
145 | [25] = { | ||
146 | .start = IRQ_SYSMMU_MDMA1_0, | ||
147 | .end = IRQ_SYSMMU_MDMA1_0, | ||
148 | .flags = IORESOURCE_IRQ, | ||
149 | }, | ||
150 | [26] = { | ||
151 | .start = EXYNOS4_PA_SYSMMU_TV, | ||
152 | .end = EXYNOS4_PA_SYSMMU_TV + SZ_64K - 1, | ||
153 | .flags = IORESOURCE_MEM, | ||
154 | }, | ||
155 | [27] = { | ||
156 | .start = IRQ_SYSMMU_TV_M0_0, | ||
157 | .end = IRQ_SYSMMU_TV_M0_0, | ||
158 | .flags = IORESOURCE_IRQ, | ||
159 | }, | ||
160 | [28] = { | ||
161 | .start = EXYNOS4_PA_SYSMMU_MFC_L, | ||
162 | .end = EXYNOS4_PA_SYSMMU_MFC_L + SZ_64K - 1, | ||
163 | .flags = IORESOURCE_MEM, | ||
164 | }, | ||
165 | [29] = { | ||
166 | .start = IRQ_SYSMMU_MFC_M0_0, | ||
167 | .end = IRQ_SYSMMU_MFC_M0_0, | ||
168 | .flags = IORESOURCE_IRQ, | ||
169 | }, | ||
170 | [30] = { | ||
171 | .start = EXYNOS4_PA_SYSMMU_MFC_R, | ||
172 | .end = EXYNOS4_PA_SYSMMU_MFC_R + SZ_64K - 1, | ||
173 | .flags = IORESOURCE_MEM, | ||
174 | }, | ||
175 | [31] = { | ||
176 | .start = IRQ_SYSMMU_MFC_M1_0, | ||
177 | .end = IRQ_SYSMMU_MFC_M1_0, | ||
178 | .flags = IORESOURCE_IRQ, | ||
179 | }, | ||
180 | }; | ||
181 | |||
182 | struct platform_device exynos4_device_sysmmu = { | ||
183 | .name = "s5p-sysmmu", | ||
184 | .id = 32, | ||
185 | .num_resources = ARRAY_SIZE(exynos4_sysmmu_resource), | ||
186 | .resource = exynos4_sysmmu_resource, | ||
187 | }; | ||
188 | |||
189 | EXPORT_SYMBOL(exynos4_device_sysmmu); | ||