fusee: Disable the SDCLK when switching to low voltage.

This commit is contained in:
hexkyz authored and GitHub committed 2018-07-24 19:06:41 +01:00
1 parent a2104b85ce
commit fd88bd1d2c
1 file changed
+3
@@ -1712,6 +1712,9 @@ int sdmmc_switch_voltage(sdmmc_t *sdmmc)
{ {
volatile tegra_pmc_t *pmc = pmc_get_regs(); volatile tegra_pmc_t *pmc = pmc_get_regs();
/* Disable the SD clock. */
sdmmc_disable_sd_clock(sdmmc);
/* Reconfigure the internal clock. */ /* Reconfigure the internal clock. */
if (!sdmmc_select_speed(sdmmc, SDMMC_SPEED_SDR12)) if (!sdmmc_select_speed(sdmmc, SDMMC_SPEED_SDR12))
{ {