SDC_MODE flexibility

This commit is contained in:
rusefillc 2022-12-16 18:35:33 -05:00
parent 276713d24f
commit fa4c69f6cf
1 changed files with 5 additions and 1 deletions

View File

@ -369,10 +369,14 @@ static BaseBlockDevice* initializeMmcBlockDevice() {
} }
#endif /* HAL_USE_MMC_SPI */ #endif /* HAL_USE_MMC_SPI */
#ifndef RE_SDC_MODE
#define RE_SDC_MODE SDC_MODE_4BIT
#endif // RE_SDC_MODE
// Some ECUs are wired for SDIO/SDMMC instead of SPI // Some ECUs are wired for SDIO/SDMMC instead of SPI
#ifdef EFI_SDC_DEVICE #ifdef EFI_SDC_DEVICE
static const SDCConfig sdcConfig = { static const SDCConfig sdcConfig = {
SDC_MODE_4BIT RE_SDC_MODE
}; };
static BaseBlockDevice* initializeMmcBlockDevice() { static BaseBlockDevice* initializeMmcBlockDevice() {