2 * Memory pre-allocations for Calliope boxes.
4 * Copyright (C) 2005-2009 Scientific-Atlanta, Inc.
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.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 * Author: Ken Eppinett
21 * David Schleef <ds@schleef.org>
24 #include <linux/init.h>
25 #include <linux/ioport.h>
26 #include <asm/mach-powertv/asic.h>
30 * NON_DVR_CAPABLE CALLIOPE RESOURCES
32 struct resource non_dvr_calliope_resources
[] __initdata
=
37 /* Delta-Mu 1 image (2MiB) */
38 PREALLOC_NORMAL("ST231aImage", 0x24000000, 0x24200000-1,
40 /* Delta-Mu 1 monitor (8KiB) */
41 PREALLOC_NORMAL("ST231aMonitor", 0x24200000, 0x24202000-1,
43 /* Delta-Mu 1 RAM (~36.9MiB (32MiB - (2MiB + 8KiB))) */
44 PREALLOC_NORMAL("MediaMemory1", 0x24202000, 0x26700000-1,
50 /* DSP code and data images (1MiB) */
51 PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1,
52 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
53 /* ADSC CPU PCM buffer (40KiB) */
54 PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1,
55 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
56 /* ADSC AUX buffer (128KiB) */
57 PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00020000-1,
58 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
59 /* ADSC Main buffer (128KiB) */
60 PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00020000-1,
61 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
67 PREALLOC_NORMAL("AVMEMPartition0", 0x00000000, 0x00600000-1,
68 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
74 PREALLOC_DOCSIS("Docsis", 0x27500000, 0x27c00000-1, IORESOURCE_MEM
)
79 /* PowerTV Graphics Heap (14MiB) */
80 PREALLOC_NORMAL("GraphicsHeap", 0x26700000, 0x26700000+(14*1048576)-1,
84 * multi com buffer area
87 PREALLOC_NORMAL("MulticomSHM", 0x23700000, 0x23720000-1,
91 * DMA Ring buffer (don't need recording buffers)
94 PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x000AA000-1,
95 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
98 * Display bins buffer for unit0
101 PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1,
102 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
105 * AVFS: player HAL memory
107 /* 945K * 3 for playback */
108 PREALLOC_NORMAL("AvfsDmaMem", 0x00000000, 0x002c4c00-1,
109 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
114 /* Persistent memory for diagnostics (64KiB) */
115 PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1,
116 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
121 /* Read and write buffers for Internal/External cards (10KiB) */
122 PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1,
123 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
129 PREALLOC_NORMAL("NandFlash", NAND_FLASH_BASE
, NAND_FLASH_BASE
+0x400-1,
133 * Synopsys GMAC Memory Region
136 PREALLOC_NORMAL("GMAC", 0x00000000, 0x00010000-1,
137 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
142 * This buffer is used in some minimal configurations (e.g. two-way
143 * loader) for storing software images
145 PREALLOC_TFTP("TFTPBuffer", 0x00000000, MEBIBYTE(80)-1,
146 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
149 * Add other resources here
153 * End of Resource marker
161 struct resource non_dvr_vze_calliope_resources
[] __initdata
=
166 /* Delta-Mu 1 image (2MiB) */
167 PREALLOC_NORMAL("ST231aImage", 0x22000000, 0x22200000-1,
169 /* Delta-Mu 1 monitor (8KiB) */
170 PREALLOC_NORMAL("ST231aMonitor", 0x22200000, 0x22202000-1,
172 /* Delta-Mu 1 RAM (10.12MiB) */
173 PREALLOC_NORMAL("MediaMemory1", 0x22202000, 0x22C20B85-1,
179 /* DSP code and data images (1MiB) */
180 PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1,
181 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
182 /* ADSC CPU PCM buffer (40KiB) */
183 PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1,
184 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
185 /* ADSC AUX buffer (16KiB) */
186 PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00004000-1,
187 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
188 /* ADSC Main buffer (16KiB) */
189 PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00004000-1,
190 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
193 * STAVEM driver/STAPI
196 PREALLOC_NORMAL("AVMEMPartition0", 0x20396000, 0x206B6000-1,
202 /* PowerTV Graphics Heap (2.59MiB) */
203 PREALLOC_NORMAL("GraphicsHeap", 0x20100000, 0x20396000-1,
207 * multi com buffer area
210 PREALLOC_NORMAL("MulticomSHM", 0x206B6000, 0x206D6000-1,
214 * DMA Ring buffer (don't need recording buffers)
217 PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x000AA000-1,
218 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
221 * Display bins buffer for unit0
224 PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1,
225 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
230 /* Persistent memory for diagnostics (64KiB) */
231 PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1,
232 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
237 /* Read and write buffers for Internal/External cards (10KiB) */
238 PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1,
239 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
245 PREALLOC_NORMAL("NandFlash", NAND_FLASH_BASE
, NAND_FLASH_BASE
+0x400-1,
249 * Synopsys GMAC Memory Region
252 PREALLOC_NORMAL("GMAC", 0x00000000, 0x00010000-1,
253 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
256 * Add other resources here
260 * End of Resource marker
267 struct resource non_dvr_vzf_calliope_resources
[] __initdata
=
272 /* Delta-Mu 1 image (2MiB) */
273 PREALLOC_NORMAL("ST231aImage", 0x24000000, 0x24200000-1,
275 /* Delta-Mu 1 monitor (8KiB) */
276 PREALLOC_NORMAL("ST231aMonitor", 0x24200000, 0x24202000-1,
278 /* Delta-Mu 1 RAM (~19.4 (21.5MiB - (2MiB + 8KiB))) */
279 PREALLOC_NORMAL("MediaMemory1", 0x24202000, 0x25580000-1,
285 /* DSP code and data images (1MiB) */
286 PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1,
287 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
288 /* ADSC CPU PCM buffer (40KiB) */
289 PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1,
290 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
291 /* ADSC AUX buffer (128KiB) */
292 PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00020000-1,
293 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
294 /* ADSC Main buffer (128KiB) */
295 PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00020000-1,
296 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
299 * STAVEM driver/STAPI
302 PREALLOC_NORMAL("AVMEMPartition0", 0x00000000, 0x00480000-1,
303 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
308 /* PowerTV Graphics Heap (14MiB) */
309 PREALLOC_NORMAL("GraphicsHeap", 0x25600000, 0x25600000+(14*1048576)-1,
313 * multi com buffer area
316 PREALLOC_NORMAL("MulticomSHM", 0x23700000, 0x23720000-1,
320 * DMA Ring buffer (don't need recording buffers)
323 PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x000AA000-1,
324 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
327 * Display bins buffer for unit0
330 PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1,
331 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
334 * Display bins buffer for unit1
337 PREALLOC_NORMAL("DisplayBins1", 0x00000000, 0x00001000-1,
338 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
341 * AVFS: player HAL memory
343 /* 945K * 3 for playback */
344 PREALLOC_NORMAL("AvfsDmaMem", 0x00000000, 0x002c4c00-1,
345 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
350 /* Persistent memory for diagnostics (64KiB) */
351 PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1,
352 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
357 /* Read and write buffers for Internal/External cards (10KiB) */
358 PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1,
359 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
365 PREALLOC_NORMAL("NandFlash", NAND_FLASH_BASE
, NAND_FLASH_BASE
+0x400-1,
369 * Synopsys GMAC Memory Region
372 PREALLOC_NORMAL("GMAC", 0x00000000, 0x00010000-1,
373 (IORESOURCE_MEM
|IORESOURCE_PTV_RES_LOEXT
))
376 * Add other resources here
380 * End of Resource marker