no sd enable (#1894)

* no sd enable

* add assert

* Revert "no sd enable"

This reverts commit fd997381ee884c890fe7664e56ed2b0f0caef2ff.
This commit is contained in:
Matthew Kennedy 2020-10-22 17:51:28 -07:00 committed by GitHub
parent ee1396e86e
commit e4c5ca4af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -476,6 +476,8 @@ void initMmcCard(void) {
return;
}
efiAssertVoid(OBD_PCM_Processor_Fault, CONFIG(sdCardSpiDevice) == SPI_NONE, "SD card enabled, but no SPI device configured!");
// todo: reuse initSpiCs method?
hs_spicfg.ssport = ls_spicfg.ssport = getHwPort("mmc", CONFIG(sdCardCsPin));
hs_spicfg.sspad = ls_spicfg.sspad = getHwPin("mmc", CONFIG(sdCardCsPin));