mmc: sdhci-of-dwcmshc: rk3568: do not enable DLL while the clock rate less than 52mhz

The DLL may not be able to lock while the clock rate less than 52mhz.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ifacc3da516d78f5f242d8b03a60500a7dfe28993
This commit is contained in:
Yifeng Zhao
2021-06-17 11:13:21 +08:00
committed by Tao Huang
parent 6770b766b4
commit b0868873db

View File

@@ -182,7 +182,7 @@ static void dwcmshc_rk_set_clock(struct sdhci_host *host, unsigned int clock)
extra &= ~BIT(0);
sdhci_writel(host, extra, DWCMSHC_HOST_CTRL3);
if (clock <= 400000) {
if (clock <= 52000000) {
/* Disable DLL and reset both of sample and drive clock */
sdhci_writel(host, 0, DWCMSHC_EMMC_DLL_CTRL);
sdhci_writel(host, 0, DWCMSHC_EMMC_DLL_RXCLK);