diff options
Diffstat (limited to 'arch/mips/powertv/asic/prealloc-calliope.c')
-rw-r--r-- | arch/mips/powertv/asic/prealloc-calliope.c | 673 |
1 files changed, 219 insertions, 454 deletions
diff --git a/arch/mips/powertv/asic/prealloc-calliope.c b/arch/mips/powertv/asic/prealloc-calliope.c index cd5b76a1c951..3fc5d46687a9 100644 --- a/arch/mips/powertv/asic/prealloc-calliope.c +++ b/arch/mips/powertv/asic/prealloc-calliope.c | |||
@@ -22,7 +22,9 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <linux/init.h> | 24 | #include <linux/init.h> |
25 | #include <linux/ioport.h> | ||
25 | #include <asm/mach-powertv/asic.h> | 26 | #include <asm/mach-powertv/asic.h> |
27 | #include "prealloc.h" | ||
26 | 28 | ||
27 | /* | 29 | /* |
28 | * NON_DVR_CAPABLE CALLIOPE RESOURCES | 30 | * NON_DVR_CAPABLE CALLIOPE RESOURCES |
@@ -32,432 +34,234 @@ struct resource non_dvr_calliope_resources[] __initdata = | |||
32 | /* | 34 | /* |
33 | * VIDEO / LX1 | 35 | * VIDEO / LX1 |
34 | */ | 36 | */ |
35 | { | 37 | /* Delta-Mu 1 image (2MiB) */ |
36 | .name = "ST231aImage", /* Delta-Mu 1 image and ram */ | 38 | PREALLOC_NORMAL("ST231aImage", 0x24000000, 0x24200000-1, |
37 | .start = 0x24000000, | 39 | IORESOURCE_MEM) |
38 | .end = 0x24200000 - 1, /*2MiB */ | 40 | /* Delta-Mu 1 monitor (8KiB) */ |
39 | .flags = IORESOURCE_MEM, | 41 | PREALLOC_NORMAL("ST231aMonitor", 0x24200000, 0x24202000-1, |
40 | }, | 42 | IORESOURCE_MEM) |
41 | { | 43 | /* Delta-Mu 1 RAM (~36.9MiB (32MiB - (2MiB + 8KiB))) */ |
42 | .name = "ST231aMonitor", /*8KiB block ST231a monitor */ | 44 | PREALLOC_NORMAL("MediaMemory1", 0x24202000, 0x26700000-1, |
43 | .start = 0x24200000, | 45 | IORESOURCE_MEM) |
44 | .end = 0x24202000 - 1, | 46 | |
45 | .flags = IORESOURCE_MEM, | ||
46 | }, | ||
47 | { | ||
48 | .name = "MediaMemory1", | ||
49 | .start = 0x24202000, | ||
50 | .end = 0x26700000 - 1, /*~36.9MiB (32MiB - (2MiB + 8KiB)) */ | ||
51 | .flags = IORESOURCE_MEM, | ||
52 | }, | ||
53 | /* | 47 | /* |
54 | * Sysaudio Driver | 48 | * Sysaudio Driver |
55 | */ | 49 | */ |
56 | { | 50 | /* DSP code and data images (1MiB) */ |
57 | .name = "DSP_Image_Buff", | 51 | PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1, |
58 | .start = 0x00000000, | 52 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
59 | .end = 0x000FFFFF, | 53 | /* ADSC CPU PCM buffer (40KiB) */ |
60 | .flags = IORESOURCE_MEM, | 54 | PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1, |
61 | }, | 55 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
62 | { | 56 | /* ADSC AUX buffer (128KiB) */ |
63 | .name = "ADSC_CPU_PCM_Buff", | 57 | PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00020000-1, |
64 | .start = 0x00000000, | 58 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
65 | .end = 0x00009FFF, | 59 | /* ADSC Main buffer (128KiB) */ |
66 | .flags = IORESOURCE_MEM, | 60 | PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00020000-1, |
67 | }, | 61 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
68 | { | 62 | |
69 | .name = "ADSC_AUX_Buff", | ||
70 | .start = 0x00000000, | ||
71 | .end = 0x00003FFF, | ||
72 | .flags = IORESOURCE_MEM, | ||
73 | }, | ||
74 | { | ||
75 | .name = "ADSC_Main_Buff", | ||
76 | .start = 0x00000000, | ||
77 | .end = 0x00003FFF, | ||
78 | .flags = IORESOURCE_MEM, | ||
79 | }, | ||
80 | /* | 63 | /* |
81 | * STAVEM driver/STAPI | 64 | * STAVEM driver/STAPI |
82 | */ | 65 | */ |
83 | { | 66 | /* 6MiB */ |
84 | .name = "AVMEMPartition0", | 67 | PREALLOC_NORMAL("AVMEMPartition0", 0x00000000, 0x00600000-1, |
85 | .start = 0x00000000, | 68 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
86 | .end = 0x00600000 - 1, /* 6 MB total */ | 69 | |
87 | .flags = IORESOURCE_MEM, | ||
88 | }, | ||
89 | /* | 70 | /* |
90 | * DOCSIS Subsystem | 71 | * DOCSIS Subsystem |
91 | */ | 72 | */ |
92 | { | 73 | /* 7MiB */ |
93 | .name = "Docsis", | 74 | PREALLOC_DOCSIS("Docsis", 0x27500000, 0x27c00000-1, IORESOURCE_MEM) |
94 | .start = 0x22000000, | 75 | |
95 | .end = 0x22700000 - 1, | ||
96 | .flags = IORESOURCE_MEM, | ||
97 | }, | ||
98 | /* | 76 | /* |
99 | * GHW HAL Driver | 77 | * GHW HAL Driver |
100 | */ | 78 | */ |
101 | { | 79 | /* PowerTV Graphics Heap (14MiB) */ |
102 | .name = "GraphicsHeap", | 80 | PREALLOC_NORMAL("GraphicsHeap", 0x26700000, 0x26700000+(14*1048576)-1, |
103 | .start = 0x22700000, | 81 | IORESOURCE_MEM) |
104 | .end = 0x23500000 - 1, /* 14 MB total */ | 82 | |
105 | .flags = IORESOURCE_MEM, | ||
106 | }, | ||
107 | /* | 83 | /* |
108 | * multi com buffer area | 84 | * multi com buffer area |
109 | */ | 85 | */ |
110 | { | 86 | /* 128KiB */ |
111 | .name = "MulticomSHM", | 87 | PREALLOC_NORMAL("MulticomSHM", 0x23700000, 0x23720000-1, |
112 | .start = 0x23700000, | 88 | IORESOURCE_MEM) |
113 | .end = 0x23720000 - 1, | 89 | |
114 | .flags = IORESOURCE_MEM, | ||
115 | }, | ||
116 | /* | 90 | /* |
117 | * DMA Ring buffer (don't need recording buffers) | 91 | * DMA Ring buffer (don't need recording buffers) |
118 | */ | 92 | */ |
119 | { | 93 | /* 680KiB */ |
120 | .name = "BMM_Buffer", | 94 | PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x000AA000-1, |
121 | .start = 0x00000000, | 95 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
122 | .end = 0x000AA000 - 1, | 96 | |
123 | .flags = IORESOURCE_MEM, | ||
124 | }, | ||
125 | /* | 97 | /* |
126 | * Display bins buffer for unit0 | 98 | * Display bins buffer for unit0 |
127 | */ | 99 | */ |
128 | { | 100 | /* 4KiB */ |
129 | .name = "DisplayBins0", | 101 | PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1, |
130 | .start = 0x00000000, | 102 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
131 | .end = 0x00000FFF, /* 4 KB total */ | 103 | |
132 | .flags = IORESOURCE_MEM, | ||
133 | }, | ||
134 | /* | 104 | /* |
135 | * | ||
136 | * AVFS: player HAL memory | 105 | * AVFS: player HAL memory |
137 | * | ||
138 | * | ||
139 | */ | 106 | */ |
140 | { | 107 | /* 945K * 3 for playback */ |
141 | .name = "AvfsDmaMem", | 108 | PREALLOC_NORMAL("AvfsDmaMem", 0x00000000, 0x002c4c00-1, |
142 | .start = 0x00000000, | 109 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
143 | .end = 0x002c4c00 - 1, /* 945K * 3 for playback */ | 110 | |
144 | .flags = IORESOURCE_MEM, | ||
145 | }, | ||
146 | /* | 111 | /* |
147 | * PMEM | 112 | * PMEM |
148 | */ | 113 | */ |
149 | { | 114 | /* Persistent memory for diagnostics (64KiB) */ |
150 | .name = "DiagPersistentMemory", | 115 | PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1, |
151 | .start = 0x00000000, | 116 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
152 | .end = 0x10000 - 1, | 117 | |
153 | .flags = IORESOURCE_MEM, | ||
154 | }, | ||
155 | /* | 118 | /* |
156 | * Smartcard | 119 | * Smartcard |
157 | */ | 120 | */ |
158 | { | 121 | /* Read and write buffers for Internal/External cards (10KiB) */ |
159 | .name = "SmartCardInfo", | 122 | PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1, |
160 | .start = 0x00000000, | 123 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
161 | .end = 0x2800 - 1, | 124 | |
162 | .flags = IORESOURCE_MEM, | ||
163 | }, | ||
164 | /* | 125 | /* |
165 | * NAND Flash | 126 | * NAND Flash |
166 | */ | 127 | */ |
167 | { | 128 | /* 10KiB */ |
168 | .name = "NandFlash", | 129 | PREALLOC_NORMAL("NandFlash", NAND_FLASH_BASE, NAND_FLASH_BASE+0x400-1, |
169 | .start = NAND_FLASH_BASE, | 130 | IORESOURCE_MEM) |
170 | .end = NAND_FLASH_BASE + 0x400 - 1, | 131 | |
171 | .flags = IORESOURCE_IO, | ||
172 | }, | ||
173 | /* | 132 | /* |
174 | * Synopsys GMAC Memory Region | 133 | * Synopsys GMAC Memory Region |
175 | */ | 134 | */ |
176 | { | 135 | /* 64KiB */ |
177 | .name = "GMAC", | 136 | PREALLOC_NORMAL("GMAC", 0x00000000, 0x00010000-1, |
178 | .start = 0x00000000, | 137 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
179 | .end = 0x00010000 - 1, | 138 | |
180 | .flags = IORESOURCE_MEM, | ||
181 | }, | ||
182 | /* | 139 | /* |
183 | * Add other resources here | 140 | * TFTPBuffer |
184 | * | 141 | * |
142 | * This buffer is used in some minimal configurations (e.g. two-way | ||
143 | * loader) for storing software images | ||
185 | */ | 144 | */ |
186 | { }, | 145 | PREALLOC_TFTP("TFTPBuffer", 0x00000000, MEBIBYTE(80)-1, |
187 | }; | 146 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
188 | 147 | ||
189 | struct resource non_dvr_vz_calliope_resources[] __initdata = | ||
190 | { | ||
191 | /* | 148 | /* |
192 | * VIDEO / LX1 | 149 | * Add other resources here |
193 | */ | ||
194 | { | ||
195 | .name = "ST231aImage", /* Delta-Mu 1 image and ram */ | ||
196 | .start = 0x24000000, | ||
197 | .end = 0x24200000 - 1, /*2 Meg */ | ||
198 | .flags = IORESOURCE_MEM, | ||
199 | }, | ||
200 | { | ||
201 | .name = "ST231aMonitor", /* 8k block ST231a monitor */ | ||
202 | .start = 0x24200000, | ||
203 | .end = 0x24202000 - 1, | ||
204 | .flags = IORESOURCE_MEM, | ||
205 | }, | ||
206 | { | ||
207 | .name = "MediaMemory1", | ||
208 | .start = 0x22202000, | ||
209 | .end = 0x22C20B85 - 1, /* 10.12 Meg */ | ||
210 | .flags = IORESOURCE_MEM, | ||
211 | }, | ||
212 | /* | ||
213 | * Sysaudio Driver | ||
214 | */ | ||
215 | { | ||
216 | .name = "DSP_Image_Buff", | ||
217 | .start = 0x00000000, | ||
218 | .end = 0x000FFFFF, | ||
219 | .flags = IORESOURCE_MEM, | ||
220 | }, | ||
221 | { | ||
222 | .name = "ADSC_CPU_PCM_Buff", | ||
223 | .start = 0x00000000, | ||
224 | .end = 0x00009FFF, | ||
225 | .flags = IORESOURCE_MEM, | ||
226 | }, | ||
227 | { | ||
228 | .name = "ADSC_AUX_Buff", | ||
229 | .start = 0x00000000, | ||
230 | .end = 0x00003FFF, | ||
231 | .flags = IORESOURCE_MEM, | ||
232 | }, | ||
233 | { | ||
234 | .name = "ADSC_Main_Buff", | ||
235 | .start = 0x00000000, | ||
236 | .end = 0x00003FFF, | ||
237 | .flags = IORESOURCE_MEM, | ||
238 | }, | ||
239 | /* | ||
240 | * STAVEM driver/STAPI | ||
241 | */ | ||
242 | { | ||
243 | .name = "AVMEMPartition0", | ||
244 | .start = 0x20300000, | ||
245 | .end = 0x20620000-1, /*3.125 MB total */ | ||
246 | .flags = IORESOURCE_MEM, | ||
247 | }, | ||
248 | /* | ||
249 | * GHW HAL Driver | ||
250 | */ | ||
251 | { | ||
252 | .name = "GraphicsHeap", | ||
253 | .start = 0x20100000, | ||
254 | .end = 0x20300000 - 1, | ||
255 | .flags = IORESOURCE_MEM, | ||
256 | }, | ||
257 | /* | ||
258 | * multi com buffer area | ||
259 | */ | ||
260 | { | ||
261 | .name = "MulticomSHM", | ||
262 | .start = 0x23900000, | ||
263 | .end = 0x23920000 - 1, | ||
264 | .flags = IORESOURCE_MEM, | ||
265 | }, | ||
266 | /* | ||
267 | * DMA Ring buffer | ||
268 | */ | ||
269 | { | ||
270 | .name = "BMM_Buffer", | ||
271 | .start = 0x00000000, | ||
272 | .end = 0x000AA000 - 1, | ||
273 | .flags = IORESOURCE_MEM, | ||
274 | }, | ||
275 | /* | ||
276 | * Display bins buffer for unit0 | ||
277 | */ | ||
278 | { | ||
279 | .name = "DisplayBins0", | ||
280 | .start = 0x00000000, | ||
281 | .end = 0x00000FFF, | ||
282 | .flags = IORESOURCE_MEM, | ||
283 | }, | ||
284 | /* | ||
285 | * PMEM | ||
286 | */ | ||
287 | { | ||
288 | .name = "DiagPersistentMemory", | ||
289 | .start = 0x00000000, | ||
290 | .end = 0x10000 - 1, | ||
291 | .flags = IORESOURCE_MEM, | ||
292 | }, | ||
293 | /* | ||
294 | * Smartcard | ||
295 | */ | ||
296 | { | ||
297 | .name = "SmartCardInfo", | ||
298 | .start = 0x00000000, | ||
299 | .end = 0x2800 - 1, | ||
300 | .flags = IORESOURCE_MEM, | ||
301 | }, | ||
302 | /* | ||
303 | * NAND Flash | ||
304 | */ | 150 | */ |
305 | { | 151 | |
306 | .name = "NandFlash", | ||
307 | .start = NAND_FLASH_BASE, | ||
308 | .end = NAND_FLASH_BASE+0x400 - 1, | ||
309 | .flags = IORESOURCE_IO, | ||
310 | }, | ||
311 | /* | 152 | /* |
312 | * Synopsys GMAC Memory Region | 153 | * End of Resource marker |
313 | */ | 154 | */ |
314 | { | 155 | { |
315 | .name = "GMAC", | 156 | .flags = 0, |
316 | .start = 0x00000000, | ||
317 | .end = 0x00010000 - 1, | ||
318 | .flags = IORESOURCE_MEM, | ||
319 | }, | 157 | }, |
320 | /* | ||
321 | * Add other resources here | ||
322 | */ | ||
323 | { }, | ||
324 | }; | 158 | }; |
325 | 159 | ||
160 | |||
326 | struct resource non_dvr_vze_calliope_resources[] __initdata = | 161 | struct resource non_dvr_vze_calliope_resources[] __initdata = |
327 | { | 162 | { |
328 | /* | 163 | /* |
329 | * VIDEO / LX1 | 164 | * VIDEO / LX1 |
330 | */ | 165 | */ |
331 | { | 166 | /* Delta-Mu 1 image (2MiB) */ |
332 | .name = "ST231aImage", /* Delta-Mu 1 image and ram */ | 167 | PREALLOC_NORMAL("ST231aImage", 0x22000000, 0x22200000-1, |
333 | .start = 0x22000000, | 168 | IORESOURCE_MEM) |
334 | .end = 0x22200000 - 1, /*2 Meg */ | 169 | /* Delta-Mu 1 monitor (8KiB) */ |
335 | .flags = IORESOURCE_MEM, | 170 | PREALLOC_NORMAL("ST231aMonitor", 0x22200000, 0x22202000-1, |
336 | }, | 171 | IORESOURCE_MEM) |
337 | { | 172 | /* Delta-Mu 1 RAM (10.12MiB) */ |
338 | .name = "ST231aMonitor", /* 8k block ST231a monitor */ | 173 | PREALLOC_NORMAL("MediaMemory1", 0x22202000, 0x22C20B85-1, |
339 | .start = 0x22200000, | 174 | IORESOURCE_MEM) |
340 | .end = 0x22202000 - 1, | 175 | |
341 | .flags = IORESOURCE_MEM, | ||
342 | }, | ||
343 | { | ||
344 | .name = "MediaMemory1", | ||
345 | .start = 0x22202000, | ||
346 | .end = 0x22C20B85 - 1, /* 10.12 Meg */ | ||
347 | .flags = IORESOURCE_MEM, | ||
348 | }, | ||
349 | /* | 176 | /* |
350 | * Sysaudio Driver | 177 | * Sysaudio Driver |
351 | */ | 178 | */ |
352 | { | 179 | /* DSP code and data images (1MiB) */ |
353 | .name = "DSP_Image_Buff", | 180 | PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1, |
354 | .start = 0x00000000, | 181 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
355 | .end = 0x000FFFFF, | 182 | /* ADSC CPU PCM buffer (40KiB) */ |
356 | .flags = IORESOURCE_MEM, | 183 | PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1, |
357 | }, | 184 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
358 | { | 185 | /* ADSC AUX buffer (16KiB) */ |
359 | .name = "ADSC_CPU_PCM_Buff", | 186 | PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00004000-1, |
360 | .start = 0x00000000, | 187 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
361 | .end = 0x00009FFF, | 188 | /* ADSC Main buffer (16KiB) */ |
362 | .flags = IORESOURCE_MEM, | 189 | PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00004000-1, |
363 | }, | 190 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
364 | { | 191 | |
365 | .name = "ADSC_AUX_Buff", | ||
366 | .start = 0x00000000, | ||
367 | .end = 0x00003FFF, | ||
368 | .flags = IORESOURCE_MEM, | ||
369 | }, | ||
370 | { | ||
371 | .name = "ADSC_Main_Buff", | ||
372 | .start = 0x00000000, | ||
373 | .end = 0x00003FFF, | ||
374 | .flags = IORESOURCE_MEM, | ||
375 | }, | ||
376 | /* | 192 | /* |
377 | * STAVEM driver/STAPI | 193 | * STAVEM driver/STAPI |
378 | */ | 194 | */ |
379 | { | 195 | /* 3.125MiB */ |
380 | .name = "AVMEMPartition0", | 196 | PREALLOC_NORMAL("AVMEMPartition0", 0x20396000, 0x206B6000-1, |
381 | .start = 0x20396000, | 197 | IORESOURCE_MEM) |
382 | .end = 0x206B6000 - 1, /* 3.125 MB total */ | 198 | |
383 | .flags = IORESOURCE_MEM, | ||
384 | }, | ||
385 | /* | 199 | /* |
386 | * GHW HAL Driver | 200 | * GHW HAL Driver |
387 | */ | 201 | */ |
388 | { | 202 | /* PowerTV Graphics Heap (2.59MiB) */ |
389 | .name = "GraphicsHeap", | 203 | PREALLOC_NORMAL("GraphicsHeap", 0x20100000, 0x20396000-1, |
390 | .start = 0x20100000, | 204 | IORESOURCE_MEM) |
391 | .end = 0x20396000 - 1, | 205 | |
392 | .flags = IORESOURCE_MEM, | ||
393 | }, | ||
394 | /* | 206 | /* |
395 | * multi com buffer area | 207 | * multi com buffer area |
396 | */ | 208 | */ |
397 | { | 209 | /* 128KiB */ |
398 | .name = "MulticomSHM", | 210 | PREALLOC_NORMAL("MulticomSHM", 0x206B6000, 0x206D6000-1, |
399 | .start = 0x206B6000, | 211 | IORESOURCE_MEM) |
400 | .end = 0x206D6000 - 1, | 212 | |
401 | .flags = IORESOURCE_MEM, | ||
402 | }, | ||
403 | /* | 213 | /* |
404 | * DMA Ring buffer | 214 | * DMA Ring buffer (don't need recording buffers) |
405 | */ | 215 | */ |
406 | { | 216 | /* 680KiB */ |
407 | .name = "BMM_Buffer", | 217 | PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x000AA000-1, |
408 | .start = 0x00000000, | 218 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
409 | .end = 0x000AA000 - 1, | 219 | |
410 | .flags = IORESOURCE_MEM, | ||
411 | }, | ||
412 | /* | 220 | /* |
413 | * Display bins buffer for unit0 | 221 | * Display bins buffer for unit0 |
414 | */ | 222 | */ |
415 | { | 223 | /* 4KiB */ |
416 | .name = "DisplayBins0", | 224 | PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1, |
417 | .start = 0x00000000, | 225 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
418 | .end = 0x00000FFF, | 226 | |
419 | .flags = IORESOURCE_MEM, | ||
420 | }, | ||
421 | /* | 227 | /* |
422 | * PMEM | 228 | * PMEM |
423 | */ | 229 | */ |
424 | { | 230 | /* Persistent memory for diagnostics (64KiB) */ |
425 | .name = "DiagPersistentMemory", | 231 | PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1, |
426 | .start = 0x00000000, | 232 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
427 | .end = 0x10000 - 1, | 233 | |
428 | .flags = IORESOURCE_MEM, | ||
429 | }, | ||
430 | /* | 234 | /* |
431 | * Smartcard | 235 | * Smartcard |
432 | */ | 236 | */ |
433 | { | 237 | /* Read and write buffers for Internal/External cards (10KiB) */ |
434 | .name = "SmartCardInfo", | 238 | PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1, |
435 | .start = 0x00000000, | 239 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
436 | .end = 0x2800 - 1, | 240 | |
437 | .flags = IORESOURCE_MEM, | ||
438 | }, | ||
439 | /* | 241 | /* |
440 | * NAND Flash | 242 | * NAND Flash |
441 | */ | 243 | */ |
442 | { | 244 | /* 10KiB */ |
443 | .name = "NandFlash", | 245 | PREALLOC_NORMAL("NandFlash", NAND_FLASH_BASE, NAND_FLASH_BASE+0x400-1, |
444 | .start = NAND_FLASH_BASE, | 246 | IORESOURCE_MEM) |
445 | .end = NAND_FLASH_BASE+0x400 - 1, | 247 | |
446 | .flags = IORESOURCE_MEM, | ||
447 | }, | ||
448 | /* | 248 | /* |
449 | * Synopsys GMAC Memory Region | 249 | * Synopsys GMAC Memory Region |
450 | */ | 250 | */ |
451 | { | 251 | /* 64KiB */ |
452 | .name = "GMAC", | 252 | PREALLOC_NORMAL("GMAC", 0x00000000, 0x00010000-1, |
453 | .start = 0x00000000, | 253 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
454 | .end = 0x00010000 - 1, | 254 | |
455 | .flags = IORESOURCE_MEM, | ||
456 | }, | ||
457 | /* | 255 | /* |
458 | * Add other resources here | 256 | * Add other resources here |
459 | */ | 257 | */ |
460 | { }, | 258 | |
259 | /* | ||
260 | * End of Resource marker | ||
261 | */ | ||
262 | { | ||
263 | .flags = 0, | ||
264 | }, | ||
461 | }; | 265 | }; |
462 | 266 | ||
463 | struct resource non_dvr_vzf_calliope_resources[] __initdata = | 267 | struct resource non_dvr_vzf_calliope_resources[] __initdata = |
@@ -465,156 +269,117 @@ struct resource non_dvr_vzf_calliope_resources[] __initdata = | |||
465 | /* | 269 | /* |
466 | * VIDEO / LX1 | 270 | * VIDEO / LX1 |
467 | */ | 271 | */ |
468 | { | 272 | /* Delta-Mu 1 image (2MiB) */ |
469 | .name = "ST231aImage", /*Delta-Mu 1 image and ram */ | 273 | PREALLOC_NORMAL("ST231aImage", 0x24000000, 0x24200000-1, |
470 | .start = 0x24000000, | 274 | IORESOURCE_MEM) |
471 | .end = 0x24200000 - 1, /*2MiB */ | 275 | /* Delta-Mu 1 monitor (8KiB) */ |
472 | .flags = IORESOURCE_MEM, | 276 | PREALLOC_NORMAL("ST231aMonitor", 0x24200000, 0x24202000-1, |
473 | }, | 277 | IORESOURCE_MEM) |
474 | { | 278 | /* Delta-Mu 1 RAM (~19.4 (21.5MiB - (2MiB + 8KiB))) */ |
475 | .name = "ST231aMonitor", /*8KiB block ST231a monitor */ | 279 | PREALLOC_NORMAL("MediaMemory1", 0x24202000, 0x25580000-1, |
476 | .start = 0x24200000, | 280 | IORESOURCE_MEM) |
477 | .end = 0x24202000 - 1, | 281 | |
478 | .flags = IORESOURCE_MEM, | ||
479 | }, | ||
480 | { | ||
481 | .name = "MediaMemory1", | ||
482 | .start = 0x24202000, | ||
483 | /* ~19.4 (21.5MiB - (2MiB + 8KiB)) */ | ||
484 | .end = 0x25580000 - 1, | ||
485 | .flags = IORESOURCE_MEM, | ||
486 | }, | ||
487 | /* | 282 | /* |
488 | * Sysaudio Driver | 283 | * Sysaudio Driver |
489 | */ | 284 | */ |
490 | { | 285 | /* DSP code and data images (1MiB) */ |
491 | .name = "DSP_Image_Buff", | 286 | PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1, |
492 | .start = 0x00000000, | 287 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
493 | .end = 0x000FFFFF, | 288 | /* ADSC CPU PCM buffer (40KiB) */ |
494 | .flags = IORESOURCE_MEM, | 289 | PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1, |
495 | }, | 290 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
496 | { | 291 | /* ADSC AUX buffer (128KiB) */ |
497 | .name = "ADSC_CPU_PCM_Buff", | 292 | PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00020000-1, |
498 | .start = 0x00000000, | 293 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
499 | .end = 0x00009FFF, | 294 | /* ADSC Main buffer (128KiB) */ |
500 | .flags = IORESOURCE_MEM, | 295 | PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00020000-1, |
501 | }, | 296 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
502 | { | 297 | |
503 | .name = "ADSC_AUX_Buff", | ||
504 | .start = 0x00000000, | ||
505 | .end = 0x00003FFF, | ||
506 | .flags = IORESOURCE_MEM, | ||
507 | }, | ||
508 | { | ||
509 | .name = "ADSC_Main_Buff", | ||
510 | .start = 0x00000000, | ||
511 | .end = 0x00003FFF, | ||
512 | .flags = IORESOURCE_MEM, | ||
513 | }, | ||
514 | /* | 298 | /* |
515 | * STAVEM driver/STAPI | 299 | * STAVEM driver/STAPI |
516 | */ | 300 | */ |
517 | { | 301 | /* 4.5MiB */ |
518 | .name = "AVMEMPartition0", | 302 | PREALLOC_NORMAL("AVMEMPartition0", 0x00000000, 0x00480000-1, |
519 | .start = 0x00000000, | 303 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
520 | .end = 0x00480000 - 1, /* 4.5 MB total */ | 304 | |
521 | .flags = IORESOURCE_MEM, | ||
522 | }, | ||
523 | /* | 305 | /* |
524 | * GHW HAL Driver | 306 | * GHW HAL Driver |
525 | */ | 307 | */ |
526 | { | 308 | /* PowerTV Graphics Heap (14MiB) */ |
527 | .name = "GraphicsHeap", | 309 | PREALLOC_NORMAL("GraphicsHeap", 0x25600000, 0x25600000+(14*1048576)-1, |
528 | .start = 0x22700000, | 310 | IORESOURCE_MEM) |
529 | .end = 0x23500000 - 1, /* 14 MB total */ | 311 | |
530 | .flags = IORESOURCE_MEM, | ||
531 | }, | ||
532 | /* | 312 | /* |
533 | * multi com buffer area | 313 | * multi com buffer area |
534 | */ | 314 | */ |
535 | { | 315 | /* 128KiB */ |
536 | .name = "MulticomSHM", | 316 | PREALLOC_NORMAL("MulticomSHM", 0x23700000, 0x23720000-1, |
537 | .start = 0x23700000, | 317 | IORESOURCE_MEM) |
538 | .end = 0x23720000 - 1, | 318 | |
539 | .flags = IORESOURCE_MEM, | ||
540 | }, | ||
541 | /* | 319 | /* |
542 | * DMA Ring buffer (don't need recording buffers) | 320 | * DMA Ring buffer (don't need recording buffers) |
543 | */ | 321 | */ |
544 | { | 322 | /* 680KiB */ |
545 | .name = "BMM_Buffer", | 323 | PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x000AA000-1, |
546 | .start = 0x00000000, | 324 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
547 | .end = 0x000AA000 - 1, | 325 | |
548 | .flags = IORESOURCE_MEM, | ||
549 | }, | ||
550 | /* | 326 | /* |
551 | * Display bins buffer for unit0 | 327 | * Display bins buffer for unit0 |
552 | */ | 328 | */ |
553 | { | 329 | /* 4KiB */ |
554 | .name = "DisplayBins0", | 330 | PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1, |
555 | .start = 0x00000000, | 331 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
556 | .end = 0x00000FFF, /* 4 KB total */ | 332 | |
557 | .flags = IORESOURCE_MEM, | ||
558 | }, | ||
559 | /* | 333 | /* |
560 | * Display bins buffer for unit1 | 334 | * Display bins buffer for unit1 |
561 | */ | 335 | */ |
562 | { | 336 | /* 4KiB */ |
563 | .name = "DisplayBins1", | 337 | PREALLOC_NORMAL("DisplayBins1", 0x00000000, 0x00001000-1, |
564 | .start = 0x00000000, | 338 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
565 | .end = 0x00000FFF, /* 4 KB total */ | 339 | |
566 | .flags = IORESOURCE_MEM, | ||
567 | }, | ||
568 | /* | 340 | /* |
569 | * | ||
570 | * AVFS: player HAL memory | 341 | * AVFS: player HAL memory |
571 | * | ||
572 | * | ||
573 | */ | 342 | */ |
574 | { | 343 | /* 945K * 3 for playback */ |
575 | .name = "AvfsDmaMem", | 344 | PREALLOC_NORMAL("AvfsDmaMem", 0x00000000, 0x002c4c00-1, |
576 | .start = 0x00000000, | 345 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
577 | .end = 0x002c4c00 - 1, /* 945K * 3 for playback */ | 346 | |
578 | .flags = IORESOURCE_MEM, | ||
579 | }, | ||
580 | /* | 347 | /* |
581 | * PMEM | 348 | * PMEM |
582 | */ | 349 | */ |
583 | { | 350 | /* Persistent memory for diagnostics (64KiB) */ |
584 | .name = "DiagPersistentMemory", | 351 | PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1, |
585 | .start = 0x00000000, | 352 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
586 | .end = 0x10000 - 1, | 353 | |
587 | .flags = IORESOURCE_MEM, | ||
588 | }, | ||
589 | /* | 354 | /* |
590 | * Smartcard | 355 | * Smartcard |
591 | */ | 356 | */ |
592 | { | 357 | /* Read and write buffers for Internal/External cards (10KiB) */ |
593 | .name = "SmartCardInfo", | 358 | PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1, |
594 | .start = 0x00000000, | 359 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
595 | .end = 0x2800 - 1, | 360 | |
596 | .flags = IORESOURCE_MEM, | ||
597 | }, | ||
598 | /* | 361 | /* |
599 | * NAND Flash | 362 | * NAND Flash |
600 | */ | 363 | */ |
601 | { | 364 | /* 10KiB */ |
602 | .name = "NandFlash", | 365 | PREALLOC_NORMAL("NandFlash", NAND_FLASH_BASE, NAND_FLASH_BASE+0x400-1, |
603 | .start = NAND_FLASH_BASE, | 366 | IORESOURCE_MEM) |
604 | .end = NAND_FLASH_BASE + 0x400 - 1, | 367 | |
605 | .flags = IORESOURCE_MEM, | ||
606 | }, | ||
607 | /* | 368 | /* |
608 | * Synopsys GMAC Memory Region | 369 | * Synopsys GMAC Memory Region |
609 | */ | 370 | */ |
610 | { | 371 | /* 64KiB */ |
611 | .name = "GMAC", | 372 | PREALLOC_NORMAL("GMAC", 0x00000000, 0x00010000-1, |
612 | .start = 0x00000000, | 373 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
613 | .end = 0x00010000 - 1, | 374 | |
614 | .flags = IORESOURCE_MEM, | ||
615 | }, | ||
616 | /* | 375 | /* |
617 | * Add other resources here | 376 | * Add other resources here |
618 | */ | 377 | */ |
619 | { }, | 378 | |
379 | /* | ||
380 | * End of Resource marker | ||
381 | */ | ||
382 | { | ||
383 | .flags = 0, | ||
384 | }, | ||
620 | }; | 385 | }; |