From 1d04b1dd83cf864d7f48cb4fe34e09a37412414c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 9 Nov 2020 15:39:42 +0100 Subject: [PATCH] software/liblitesdcard: Operate the SDCard in 3.3V/High Speed. SDR50/Driver strength configuration is for 1.8V that is no longer supported (for simplicity). --- litex/soc/software/liblitesdcard/sdcard.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/litex/soc/software/liblitesdcard/sdcard.c b/litex/soc/software/liblitesdcard/sdcard.c index 009552250..467ee4dc7 100644 --- a/litex/soc/software/liblitesdcard/sdcard.c +++ b/litex/soc/software/liblitesdcard/sdcard.c @@ -449,11 +449,7 @@ int sdcard_init(void) { return 0; /* Switch speed */ - if (sdcard_switch(SD_SWITCH_SWITCH, SD_GROUP_ACCESSMODE, SD_SPEED_SDR50) != SD_OK) - return 0; - - /* Switch driver strength */ - if (sdcard_switch(SD_SWITCH_SWITCH, SD_GROUP_DRIVERSTRENGTH, SD_DRIVER_STRENGTH_D) != SD_OK) + if (sdcard_switch(SD_SWITCH_SWITCH, SD_GROUP_ACCESSMODE, SD_SPEED_SDR25) != SD_OK) return 0; /* Send SCR */