Skip to content

Commit

Permalink
software/bios: Fix missing CSR_SDCARD_CORE_BASE update.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jul 26, 2023
1 parent 66b44ec commit 20ce982
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions litex/soc/software/bios/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion litex/soc/software/bios/cmds/cmd_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion litex/soc/software/bios/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion litex/soc/software/liblitesdcard/sdcard.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 20ce982

Please sign in to comment.