software/bios: Fix missing CSR_SDCARD_CORE_BASE update.

This commit is contained in:
Florent Kermarrec 2023-07-26 16:30:52 +02:00
parent 66b44ecd60
commit 20ce982da2
4 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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)

View file

@ -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
}