Skip to content
Snippets Groups Projects
Commit 379d0cf8 authored by Dheeraj Kumar Chaudhary's avatar Dheeraj Kumar Chaudhary
Browse files

When setting HS400 mode to eMMC in LK, the frequency

does not meet the eMMC in JEDEC standard during boot.

Set the base_clk_rate in LK same as Kernel so that the
expected output can be generated based on the div value.

Change-Id: I4752f435881e87b99f8d3a5800cf66947bcc9c47
parent 9d6b888a
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@
#include <platform/iomap.h>
#include <platform/timer.h>
#include <platform.h>
#include <board.h>
extern void clock_init_mmc(uint32_t);
extern void clock_config_mmc(uint32_t, uint32_t);
......@@ -1063,8 +1064,12 @@ uint32_t mmc_set_hs400_mode(struct sdhci_host *host,
return mmc_ret;
}
}
else
else {
clock_config_mmc(host->msm_host->slot, SDHCI_CLK_400MHZ);
if (board_hardware_id() == HW_PLATFORM_ADP) {
host->caps.base_clk_rate = 384000000;
}
}
/* 2. Enable High speed mode */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment