mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user