rockchip: sdhci: improve calpad busy trimming
Change-Id: I8326d72d36a6aa58615d8c502881e4d446451a99 Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
parent
0598134af8
commit
10f01e730f
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue