From: Florent Kermarrec Date: Thu, 11 Jun 2020 06:33:56 +0000 (+0200) Subject: software/bios/boot/sdcardboot: let FatFs do the SDCard initialization with disk_initi... X-Git-Tag: 24jan2021_ls180~187 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d918c0bb99591f6cf0f59e1c4f5fae0da1eb6e0e;p=litex.git software/bios/boot/sdcardboot: let FatFs do the SDCard initialization with disk_initialize. --- diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index 2c8d844e..18ad01b9 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -601,21 +601,12 @@ void sdcardboot(void) uint32_t result; - printf("Booting from SDCard...\n"); - - /* Initialize SDCard */ #ifdef CSR_SPISDCARD_BASE - printf("Initializing SDCard in SPI-Mode...\n"); - result = spisdcard_init(); + printf("Booting from SDCard in SPI-Mode...\n"); #endif #ifdef CSR_SDCORE_BASE - printf("Initializing SDCard in SD-Mode...\n"); - result = sdcard_init(); + printf("Booting from SDCard in SD-Mode...\n"); #endif - if (result == 0) { - printf("SDCard initialization failed.\n"); - return; - } /* Copy files to RAM */ #if defined(CONFIG_CPU_TYPE_VEXRISCV) && defined(CONFIG_CPU_VARIANT_LINUX)