bdk: clock: streamline sdmmc func naming

Additionally, restored the pclock variable because of _clock_sdmmc_config_clock_host store order.
This commit is contained in:
CTCaer committed 2025-11-26 14:37:14 +02:00
1 parent a2ea3fb08e
commit 9c028cd94a
3 files changed
+23 -21

No files matched your search

+1 -1
View File
@@ -1372,7 +1372,7 @@ int sdmmc_init(sdmmc_t *sdmmc, u32 id, u32 power, u32 bus_width, u32 type)
}
// Disable clock if enabled.
if (clock_sdmmc_is_not_reset_and_enabled(id))
if (clock_sdmmc_is_active(id))
{
_sdmmc_card_clock_disable(sdmmc);
_sdmmc_commit_changes(sdmmc);