mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 10:01:32 +00:00
driver: ram: rockchip: rk3399: missing counter increment
If we want to check the duration we need to increment the counter. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
7a6d7d3e12
commit
2ebc80e83c
1 changed files with 1 additions and 0 deletions
|
@ -1015,6 +1015,7 @@ static int switch_to_phy_index1(struct dram_info *dram,
|
||||||
writel(RK_CLRSETBITS(1 << 1, 1 << 1), &dram->cic->cic_ctrl0);
|
writel(RK_CLRSETBITS(1 << 1, 1 << 1), &dram->cic->cic_ctrl0);
|
||||||
while (!(readl(&dram->cic->cic_status0) & (1 << 0))) {
|
while (!(readl(&dram->cic->cic_status0) & (1 << 0))) {
|
||||||
mdelay(10);
|
mdelay(10);
|
||||||
|
i++;
|
||||||
if (i > 10) {
|
if (i > 10) {
|
||||||
debug("index1 frequency done overtime\n");
|
debug("index1 frequency done overtime\n");
|
||||||
return -ETIME;
|
return -ETIME;
|
||||||
|
|
Loading…
Add table
Reference in a new issue