|
@@ -76,7 +76,7 @@ static void do_emif4_init(void)
|
|
regval |= (1<<10);
|
|
regval |= (1<<10);
|
|
writel(regval, &emif4_base->sdram_iodft_tlgc);
|
|
writel(regval, &emif4_base->sdram_iodft_tlgc);
|
|
/*Wait till that bit clears*/
|
|
/*Wait till that bit clears*/
|
|
- while ((readl(&emif4_base->sdram_iodft_tlgc) & (1<<10)) == 0x1);
|
|
|
|
|
|
+ while ((readl(&emif4_base->sdram_iodft_tlgc) & (1<<10)) != 0x0);
|
|
/*Re-verify the DDR PHY status*/
|
|
/*Re-verify the DDR PHY status*/
|
|
while ((readl(&emif4_base->sdram_sts) & (1<<2)) == 0x0);
|
|
while ((readl(&emif4_base->sdram_sts) & (1<<2)) == 0x0);
|
|
|
|
|