1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-05 20:26:52 +00:00

bdk: sdmmc: no need to raise power limit for HS25

This commit is contained in:
CTCaer 2024-06-10 13:24:07 +03:00
parent 48334779a5
commit a37b5c7841

View File

@ -1398,7 +1398,7 @@ static int _sd_storage_enable_uhs_low_volt(sdmmc_storage_t *storage, u32 type, u
} }
// Try to raise the power limit to let the card perform better. // Try to raise the power limit to let the card perform better.
if (hs_type != UHS_SDR25_BUS_SPEED) if (hs_type != UHS_SDR25_BUS_SPEED) // Not applicable for SDR12/SDR25.
_sd_storage_set_power_limit(storage, fmodes.power_limit, buf); _sd_storage_set_power_limit(storage, fmodes.power_limit, buf);
// Setup and set selected card and bus speed. // Setup and set selected card and bus speed.
@ -1426,9 +1426,6 @@ static int _sd_storage_enable_hs_high_volt(sdmmc_storage_t *storage, u8 *buf)
DPRINTF("[SD] access: %02X, power: %02X\n", fmodes.access_mode, fmodes.power_limit); DPRINTF("[SD] access: %02X, power: %02X\n", fmodes.access_mode, fmodes.power_limit);
// Try to raise the power limit to let the card perform better.
_sd_storage_set_power_limit(storage, fmodes.power_limit, buf);
if (!(fmodes.access_mode & SD_MODE_HIGH_SPEED)) if (!(fmodes.access_mode & SD_MODE_HIGH_SPEED))
return 1; return 1;