mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/bios/boot/sdcardboot: let FatFs do the SDCard initialization with disk_initialize.
This commit is contained in:
parent
5197600812
commit
d918c0bb99
1 changed files with 2 additions and 11 deletions
|
@ -601,21 +601,12 @@ void sdcardboot(void)
|
||||||
|
|
||||||
uint32_t result;
|
uint32_t result;
|
||||||
|
|
||||||
printf("Booting from SDCard...\n");
|
|
||||||
|
|
||||||
/* Initialize SDCard */
|
|
||||||
#ifdef CSR_SPISDCARD_BASE
|
#ifdef CSR_SPISDCARD_BASE
|
||||||
printf("Initializing SDCard in SPI-Mode...\n");
|
printf("Booting from SDCard in SPI-Mode...\n");
|
||||||
result = spisdcard_init();
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef CSR_SDCORE_BASE
|
#ifdef CSR_SDCORE_BASE
|
||||||
printf("Initializing SDCard in SD-Mode...\n");
|
printf("Booting from SDCard in SD-Mode...\n");
|
||||||
result = sdcard_init();
|
|
||||||
#endif
|
#endif
|
||||||
if (result == 0) {
|
|
||||||
printf("SDCard initialization failed.\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Copy files to RAM */
|
/* Copy files to RAM */
|
||||||
#if defined(CONFIG_CPU_TYPE_VEXRISCV) && defined(CONFIG_CPU_VARIANT_LINUX)
|
#if defined(CONFIG_CPU_TYPE_VEXRISCV) && defined(CONFIG_CPU_VARIANT_LINUX)
|
||||||
|
|
Loading…
Reference in a new issue