drivers: clk: ipq40xx: Clear divider value while doing deinit

This change will clear the divider value while doing deinit of
SD devices. In-order to clear the divider value we have to write
into register GCC_SDCC1_MISC.

Writing 0x0 to this register will clear the divider value which is
set, while doing initialization got SD devices.
Without this change, while kernel bootup we can see the below error.

error:
[3.529917] mmc0: Skipping voltage switch
[4.131741] mmc0: error -110 whilst initialising SD card.

Change-Id: Ifeca94ae09532a4b506e645cc9254e438179c886
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
This commit is contained in:
Md Sadre Alam 2018-11-20 12:33:26 +05:30
parent 2da02f66d3
commit b174865973

View file

@ -63,6 +63,8 @@ void emmc_clock_config(int mode)
}
void emmc_clock_disable(void)
{
/* Clear divider */
writel(0x0, GCC_SDCC1_MISC);
writel(0x0, GCC_SDCC1_APPS_CBCR);
udelay(10);