Changeset 286 for trunk/softs
- Timestamp:
- Jan 14, 2013, 4:39:14 PM (12 years ago)
- Location:
- trunk/softs/tsar_boot
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/Makefile
r281 r286 55 55 $(info Making for $(PLATFORM_DIR), SocLib variant) 56 56 else 57 ifdef SYSCLK_FREQ 58 DEFS+= -DSYSCLK_FREQ 59 endif 57 60 DTS=platform_fpga.dts 58 61 $(info Making for $(PLATFORM_DIR), FPGA variant) -
trunk/softs/tsar_boot/boot_loader_entry.c
r276 r286 83 83 /* Initialize the block device */ 84 84 if (_ioc_init() != 0) { 85 86 85 boot_puts(start_boot_str_err); 86 while (1); 87 87 } 88 88 … … 93 93 nb_available = 0; 94 94 nb_rest = sizeof(Elf32_Ehdr); 95 offset 95 offset = 0; 96 96 97 97 elf_header = (Elf32_Ehdr *) elf_header_base; … … 108 108 if ( _ioc_read(nb_block , boot_loader_buffer, 1) ) 109 109 { 110 111 110 boot_puts(start_boot_str_err); 111 while (1); 112 112 } 113 113 -
trunk/softs/tsar_boot/boot_tty.c
r280 r286 7 7 in_reset int boot_getc(int *c) 8 8 { 9 10 if (ioread32( tty_address[TTY_STATUS]) == 0)9 unsigned int* tty_address = (unsigned int*) TTY_BASE; 10 if (ioread32(&tty_address[TTY_STATUS]) == 0) 11 11 return 0; 12 *c = ioread32(&tty_address[TTY_READ]); 12 13 *c = ioread32(&tty_address[TTY_READ]); 13 14 return 1; 14 15 } -
trunk/softs/tsar_boot/io_drivers/ioc.c
r279 r286 55 55 // // iterate on lines to invalidate each one of them 56 56 // for ( i=0; i<size; i+=dcache_line_size ) 57 // asm volatile(" cache %0, %1" 58 // : 59 // :"i" (0x11), "R" (*((char*)buffer+i))); 57 // asm volatile 58 // (" mtc2 %0, $7\n" 59 // : 60 // : "r" (*((char*)buffer+i)) 61 // ); 60 62 //} 61 63 … … 105 107 boot_puts(init_begin); 106 108 109 #ifndef SYSCLK_FREQ 110 #warning "Using default value for SYSCLK_FREQ = 50000000" 111 #define SYSCLK_FREQ 50000000U 112 #endif 113 107 114 /** 108 115 * Initializing the SPI controller … … 111 118 _spi_device , 112 119 200000 , /**< SPI_clk: 200 Khz */ 113 50000000 , /**< Sys_clk: 50 Mhz*/120 SYSCLK_FREQ , /**< Sys_clk */ 114 121 8 , /**< Charlen: 8 */ 115 122 SPI_TX_NEGEDGE, … … 132 139 _spi_device , 133 140 10000000 , /**< SPI_clkL 10 Mhz */ 134 50000000 , /**< Sys_clk: 50 Mhz*/141 SYSCLK_FREQ , /**< Sys_clk */ 135 142 -1 , /**< Charlen: 8 */ 136 143 -1 , … … 327 334 328 335 //_ioc_lock = 0; 329 //330 //_dcache_buf_invalidate(buffer, count);331 336 332 337 return 0;
Note: See TracChangeset
for help on using the changeset viewer.