mmc: sdhci-msm: set core in proper mode before reset

During probe disable the HC mode since the reset is done in
SDCC mode. HC mode will get set after the reset is complete
before the rest of the initialization is done.

Change-Id: I1fdc633c218447c15c8caad24e2805e7510088f2
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
This commit is contained in:
Stepan Moskovchenko 2013-09-13 22:19:33 -07:00 committed by Subhash Jadavani
parent c2037aa944
commit 6d26067be7

View file

@ -2798,6 +2798,9 @@ static int sdhci_msm_probe(struct platform_device *pdev)
goto vreg_deinit;
}
/* Unset HC_MODE_EN bit in HC_MODE register */
writel_relaxed(0, (msm_host->core_mem + CORE_HC_MODE));
/* Set SW_RST bit in POWER register (Offset 0x0) */
writel_relaxed(readl_relaxed(msm_host->core_mem + CORE_POWER) |
CORE_SW_RST, msm_host->core_mem + CORE_POWER);