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

Commit 31dde246 authored by Talel Shenhar's avatar Talel Shenhar
Browse files

mmc: sdhci-msm: Fix clk gating on MSM8996-v2/v3 revisions



MSM8996-V2 and MSM8996-V3 has different sdcc minor
number compared to MSM8996-v1.
Include these minor numbers as well for fixing
clk-gating logic.

Change-Id: Ie9c797589151bcfc17c7ddee33dd93d9ea683822
Signed-off-by: default avatarRitesh Harjani <riteshh@codeaurora.org>
Signed-off-by: default avatarTalel Shenhar <tatias@codeaurora.org>
parent fd854d74
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -2755,14 +2755,15 @@ static void sdhci_set_default_hw_caps(struct sdhci_msm_host *msm_host,
		msm_host->use_updated_dll_reset = true;

	/*
	 * SDCC 5 controller with major version 1 and minor version 0x42
	 * currently uses 14lpp tech DLL whose internal gating cannot
	 * guarantee MCLK timing requirement i.e.
	 * SDCC 5 controller with major version 1 and minor version 0x42,
	 * 0x46 and 0x49 currently uses 14lpp tech DLL whose internal
	 * gating cannot guarantee MCLK timing requirement i.e.
	 * when MCLK is gated OFF, it is not gated for less than 0.5us
	 * and MCLK must be switched on for at-least 1us before DATA
	 * starts coming.
	 */
	if ((major == 1) && (minor == 0x42))
	if ((major == 1) && ((minor == 0x42) || (minor == 0x46) ||
				(minor == 0x49)))
		msm_host->use_14lpp_dll = true;
	/*
	 * Mask 64-bit support for controller with 32-bit address bus so that