rockchip: sdhci: improve calpad busy trimming

Change-Id: I8326d72d36a6aa58615d8c502881e4d446451a99
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
Ziyuan Xu 2018-11-06 18:19:26 +08:00 committed by Kever Yang
parent 0598134af8
commit 10f01e730f
1 changed files with 3 additions and 2 deletions

View File

@ -79,9 +79,10 @@ static void rk3399_emmc_phy_power_on(struct rockchip_emmc_phy *phy, u32 clock)
/*
* According to the user manual, it asks driver to
* wait 5us for calpad busy trimming
* wait 5us for calpad busy trimming. But it seems that
* 5us of caldone isn't enough for all cases.
*/
udelay(5);
udelay(500);
caldone = readl(&phy->emmcphy_status);
caldone = (caldone >> PHYCTRL_CALDONE_SHIFT) & PHYCTRL_CALDONE_MASK;
if (caldone != PHYCTRL_CALDONE_DONE) {