bdk: sdmmc: remove powersave arg from sdmmc init

This commit is contained in:
CTCaer committed 2023-03-31 07:51:43 +03:00
1 parent 1ce5bb10f8
commit 298893f404
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -1244,7 +1244,7 @@ static void _sdmmc_config_emmc(u32 id, bool t210b01)
}
}
int sdmmc_init(sdmmc_t *sdmmc, u32 id, u32 power, u32 bus_width, u32 type, int powersave_enable)
int sdmmc_init(sdmmc_t *sdmmc, u32 id, u32 power, u32 bus_width, u32 type)
{
u32 clock;
u16 divisor;
@@ -1322,7 +1322,7 @@ int sdmmc_init(sdmmc_t *sdmmc, u32 id, u32 power, u32 bus_width, u32 type, int p
if (sdmmc_setup_clock(sdmmc, type))
{
sdmmc_card_clock_powersave(sdmmc, powersave_enable);
sdmmc_card_clock_powersave(sdmmc, SDMMC_POWER_SAVE_DISABLE);
_sdmmc_card_clock_enable(sdmmc);
_sdmmc_commit_changes(sdmmc);