mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/bios: Fix missing CSR_SDCARD_CORE_BASE update.
This commit is contained in:
parent
66b44ecd60
commit
20ce982da2
4 changed files with 5 additions and 5 deletions
|
@ -657,7 +657,7 @@ void flashboot(void)
|
|||
/* SDCard Boot */
|
||||
/*-----------------------------------------------------------------------*/
|
||||
|
||||
#if defined(CSR_SPISDCARD_BASE) || defined(CSR_SDCORE_BASE)
|
||||
#if defined(CSR_SPISDCARD_BASE) || defined(CSR_SDCARD_CORE_BASE)
|
||||
|
||||
static int copy_file_from_sdcard_to_ram(const char * filename, unsigned long ram_address)
|
||||
{
|
||||
|
@ -814,7 +814,7 @@ void sdcardboot(void)
|
|||
printf("Booting from SDCard in SPI-Mode...\n");
|
||||
fatfs_set_ops_spisdcard(); /* use spisdcard disk access ops */
|
||||
#endif
|
||||
#ifdef CSR_SDCORE_BASE
|
||||
#ifdef CSR_SDCARD_CORE_BASE
|
||||
printf("Booting from SDCard in SD-Mode...\n");
|
||||
fatfs_set_ops_sdcard(); /* use sdcard disk access ops */
|
||||
#endif
|
||||
|
|
|
@ -122,7 +122,7 @@ define_command(netboot, netboot, "Boot via Ethernet (TFTP)", BOOT_CMDS);
|
|||
* Boot software from SDcard
|
||||
*
|
||||
*/
|
||||
#if defined(CSR_SPISDCARD_BASE) || defined(CSR_SDCORE_BASE)
|
||||
#if defined(CSR_SPISDCARD_BASE) || defined(CSR_SDCARD_CORE_BASE)
|
||||
define_command(sdcardboot, sdcardboot, "Boot from SDCard", BOOT_CMDS);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ static void boot_sequence(void)
|
|||
#ifdef ROM_BOOT_ADDRESS
|
||||
romboot();
|
||||
#endif
|
||||
#if defined(CSR_SPISDCARD_BASE) || defined(CSR_SDCORE_BASE)
|
||||
#if defined(CSR_SPISDCARD_BASE) || defined(CSR_SDCARD_CORE_BASE)
|
||||
sdcardboot();
|
||||
#endif
|
||||
#if defined(CSR_SATA_SECTOR2MEM_BASE)
|
||||
|
|
|
@ -109,7 +109,7 @@ void sdcard_read(uint32_t sector, uint32_t count, uint8_t* buf);
|
|||
void sdcard_write(uint32_t sector, uint32_t count, uint8_t* buf);
|
||||
void fatfs_set_ops_sdcard(void);
|
||||
|
||||
#endif /* CSR_SDCORE_BASE */
|
||||
#endif /* CSR_SDCARD_CORE_BASE */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue