mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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:
parent
2da02f66d3
commit
b174865973
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue