sd: Oops, wire up SD_MHZ parameter

The SD_MHZ config option exists, but wasn't wired up in the SD
initialisation code.
This commit is contained in:
Matt Evans 2024-08-27 17:41:11 +01:00
parent 454cf94d1e
commit 99a287671f

View file

@ -50,8 +50,7 @@ static spi_t spis[] = { // One for each SPI.
.sck_gpio_drive_strength = GPIO_DRIVE_STRENGTH_8MA, .sck_gpio_drive_strength = GPIO_DRIVE_STRENGTH_8MA,
// One of my cards doesn't seem to work beyond 5MHz :( // One of my cards doesn't seem to work beyond 5MHz :(
.baud_rate = 5 * 1000 * 1000, .baud_rate = SD_MHZ * 1000 * 1000,
//.baud_rate = 25 * 1000 * 1000, // Actual frequency: 20833333.
} }
}; };