Changeset 299 for soft/giet_vm/giet_boot/boot.c
- Timestamp:
- Apr 3, 2014, 2:02:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_boot/boot.c
r295 r299 79 79 #include <nic_driver.h> 80 80 #include <ioc_driver.h> 81 #include <iob_driver.h> 81 82 #include <pic_driver.h> 82 83 #include <mwr_driver.h> … … 1963 1964 { 1964 1965 // initialize all channels except channel 0 because it has been 1965 // initialize during mapping_info loading1966 // initialized by the preloader. 1966 1967 for (channel_id = 1; channel_id < channels; channel_id++) 1967 1968 { … … 1975 1976 break; 1976 1977 } 1977 case PERIPH_TYPE_DMA: // vci_multi_dma component1978 {1979 for (channel_id = 0; channel_id < channels; channel_id++)1980 {1981 _dma_init( cluster_xy, channel_id );1982 }1983 #if BOOT_DEBUG_PERI1984 _puts("- DMA / channels = ");1985 _putd(channels);1986 _puts("\n");1987 #endif1988 break;1989 }1990 case PERIPH_TYPE_FBF: // vci_block_device component1991 {1992 // nothing to do1993 #if BOOT_DEBUG_PERI1994 _puts("- FBF / channels = ");1995 _putd(channels);1996 _puts("\n");1997 #endif1998 break;1999 }2000 1978 case PERIPH_TYPE_CMA: // vci_chbuf_dma component 2001 1979 { … … 2024 2002 break; 2025 2003 } 2026 case PERIPH_TYPE_XCU: // vci_xicu component2027 {2028 // nothing to do2029 #if BOOT_DEBUG_PERI2030 _puts("- XCU / channels = ");2031 _putd(channels);2032 _puts("\n");2033 #endif2034 break;2035 }2036 case PERIPH_TYPE_MMC: // vci_memcache config2037 {2038 // nothing to do2039 #if BOOT_DEBUG_PERI2040 _puts("- MMC / channels = ");2041 _putd(channels);2042 _puts("\n");2043 #endif2044 break;2045 }2046 2004 case PERIPH_TYPE_TTY: // vci_multi_tty component 2047 2005 { … … 2056 2014 case PERIPH_TYPE_IOB: // vci_io_bridge component 2057 2015 { 2058 if (USE_IOB) 2016 // initialize r_xicu_base & r_xicu_size registers 2017 unsigned int base = (unsigned int)&seg_xcu_base; 2018 2019 #if BOOT_DEBUG_PERI 2020 _puts("- IOB / channels = "); 2021 _putd(channels); 2022 _puts(" / XICU_BASE = "); 2023 _putx( base ); 2024 _puts(" / XICU_SIZE = "); 2025 _putx( 0x1000 ); 2026 _puts("\n"); 2027 #endif 2028 _iob_set_xicu_base( cluster_xy, base ); 2029 _iob_set_xicu_size( cluster_xy, 0x1000 ); 2030 2031 if (GIET_USE_IOMMU) 2059 2032 { 2060 2033 // TODO … … 2066 2039 // pseg_base[IOB_IOMMU_ACTIVE] = 1; 2067 2040 } 2068 #if BOOT_DEBUG_PERI2069 _puts("- IOB / channels = ");2070 _putd(channels);2071 _puts("\n");2072 #endif2073 2041 break; 2074 2042 } … … 2222 2190 _set_sched( (unsigned int)_schedulers[0] ); 2223 2191 2224 // Initializing peripherals2192 // Initializing non replicated peripherals 2225 2193 boot_peripherals_init(); 2226 2194
Note: See TracChangeset
for help on using the changeset viewer.