mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 12:21:18 +00:00
fusee: Disable the SDCLK when switching to low voltage.
This commit is contained in:
parent
a2104b85ce
commit
fd88bd1d2c
1 changed files with 4 additions and 1 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
@ -1978,4 +1981,4 @@ int sdmmc_abort(sdmmc_t *sdmmc, uint32_t opcode)
|
||||||
sdmmc_disable_sd_clock(sdmmc);
|
sdmmc_disable_sd_clock(sdmmc);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue