Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3235268 authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

mmc: sdhci-msm: consider clock frequency above 200MHz during DLL config



SDR104 card can handle the clock frequency upto 208MHz but when we program
MCLK_FREQ field in DLL_CONFIG register, we don't choose right value for
MCLK_FREQ field when clock frequency is greater than 200MHz. This change
fixes it.

Change-Id: I523fc27a0ed6670915a8ce36b2fbfd31446633d7
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent f56802e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -691,7 +691,7 @@ static inline void msm_cm_dll_set_freq(struct sdhci_host *host)
		mclk_freq = 5;
	else if (host->clock <= 187000000)
		mclk_freq = 6;
	else if (host->clock <= 200000000)
	else if (host->clock <= 208000000)
		mclk_freq = 7;

	writel_relaxed(((readl_relaxed(host->ioaddr +