Changeset 249 for soft/giet_vm/xml/xml_parser.c
- Timestamp:
- Jul 18, 2013, 6:33:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/xml/xml_parser.c
r245 r249 99 99 ////////////////////////////// 100 100 char found_timer = 0; 101 char found_icu = 0; 102 char found_dma = 0; 101 char found_icu = 0; 102 char found_dma = 0; 103 char found_mmc = 0; 103 104 104 105 … … 120 121 unsigned int cma_channels = 0; // total number of channels in first CMA 121 122 122 unsigned int io_mmu_active= 0; // using IOB component123 unsigned int use_iob = 0; // using IOB component 123 124 unsigned int use_xicu = 0; // using XICU (not ICU) 124 125 … … 1205 1206 { 1206 1207 periph[periph_index]->type = PERIPH_TYPE_IOB; 1207 io_mmu_active= 1;1208 use_iob = 1; 1208 1209 if (header->iob_cluster == 0xFFFFFFFF) 1209 1210 { … … 1219 1220 } 1220 1221 } 1221 // The TIM, ICU, XICU, DMA peripherals are replicated in all clusters1222 // The TIM, ICU, XICU, DMA, MEMC peripherals are replicated in all clusters 1222 1223 // but only one component per cluster 1223 1224 else if (strcmp(str, "TIM") == 0 ) … … 1255 1256 if (dma_channels < periph[periph_index]->channels) 1256 1257 dma_channels = periph[periph_index]->channels; 1258 } 1259 else if (strcmp(str, "MMC") == 0) 1260 { 1261 periph[periph_index]->type = PERIPH_TYPE_MMC; 1262 if (found_mmc) error = 1; 1263 found_mmc = 1; 1264 if ( periph[periph_index]->channels != 1 ) error = 1; 1257 1265 } 1258 1266 else … … 1650 1658 // for replicated periph 1651 1659 found_timer = 0; 1652 found_icu = 0; 1653 found_dma = 0; 1660 found_icu = 0; 1661 found_dma = 0; 1662 found_mmc = 0; 1654 1663 1655 1664 if (xmlTextReaderNodeType(reader) == XML_READER_TYPE_END_ELEMENT) { … … 2179 2188 2180 2189 def_int_write(fdout, "USE_XICU ", use_xicu); 2181 def_int_write(fdout, " IOMMU_ACTIVE ", io_mmu_active);2190 def_int_write(fdout, "USE_IOB ", use_iob); 2182 2191 2183 2192 file_write(fdout, epil); … … 2265 2274 2266 2275 // non replicated peripherals 2267 ld_write(fdout, " \nseg_fbf_base ", periph_vbase_array[PERIPH_TYPE_FBF]);2276 ld_write(fdout, "seg_cma_base ", periph_vbase_array[PERIPH_TYPE_CMA]); 2268 2277 ld_write(fdout, "seg_ioc_base ", periph_vbase_array[PERIPH_TYPE_IOC]); 2278 ld_write(fdout, "seg_tty_base ", periph_vbase_array[PERIPH_TYPE_TTY]); 2279 ld_write(fdout, "seg_fbf_base ", periph_vbase_array[PERIPH_TYPE_FBF]); 2269 2280 ld_write(fdout, "seg_nic_base ", periph_vbase_array[PERIPH_TYPE_NIC]); 2270 ld_write(fdout, "seg_ tty_base ", periph_vbase_array[PERIPH_TYPE_TTY]);2281 ld_write(fdout, "seg_iob_base ", periph_vbase_array[PERIPH_TYPE_IOB]); 2271 2282 ld_write(fdout, "seg_gcd_base ", periph_vbase_array[PERIPH_TYPE_GCD]); 2272 ld_write(fdout, "seg_iob_base ", periph_vbase_array[PERIPH_TYPE_IOB]);2273 2283 2274 2284 file_write(fdout, "\n"); … … 2276 2286 // replicated peripherals 2277 2287 ld_write(fdout, "seg_icu_base ", periph_vbase_array[PERIPH_TYPE_ICU]); 2288 ld_write(fdout, "seg_tim_base ", periph_vbase_array[PERIPH_TYPE_TIM]); 2278 2289 ld_write(fdout, "seg_dma_base ", periph_vbase_array[PERIPH_TYPE_DMA]); 2279 ld_write(fdout, "seg_ tim_base ", periph_vbase_array[PERIPH_TYPE_TIM]);2290 ld_write(fdout, "seg_mmc_base ", periph_vbase_array[PERIPH_TYPE_MMC]); 2280 2291 2281 2292 close(fdout);
Note: See TracChangeset
for help on using the changeset viewer.