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

Commit 0e8efbab authored by Krishna Konda's avatar Krishna Konda Committed by Xiaonian Wang
Browse files

sdhci: sdhci-msm: fix issue with hs400 mode



In HS400 mode, command line is still operated in SDR mode and not
DDR mode like data lines. So in order to correctly process command
responses, the hardware needs to be set appropriately or else there
will command crc or similar errors due to incorrect sampling of the
response.

Change-Id: I426ff4fc4798afae254d11a608c800dc0b7bf765
Signed-off-by: default avatarKrishna Konda <kkonda@codeaurora.org>
parent 2faa7bbe
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -893,6 +893,11 @@ static int sdhci_msm_hs400_dll_calibration(struct sdhci_host *host)
	if (ret)
		goto out;

	/* Write 1 to CMD_DAT_TRACK_SEL field in DLL_CONFIG */
	writel_relaxed((readl_relaxed(host->ioaddr + CORE_DLL_CONFIG)
				| CORE_CMD_DAT_TRACK_SEL),
				host->ioaddr + CORE_DLL_CONFIG);

	if (msm_host->use_cdclp533)
		/* Calibrate CDCLP533 DLL HW */
		ret = sdhci_msm_cdclp533_calibration(host);