Fix inverted test for lock status while waiting for PLL to become stable.

Reviewed by:	andrew
Approved by:	adrian (mentor)
This commit is contained in:
Jared McNeill 2016-02-26 20:33:32 +00:00
parent f0e6a4d318
commit 81e802c14b

View File

@ -129,8 +129,8 @@ a31_clk_pll6_enable(void)
/* Wait for PLL to be stable */
for (i = 0; i < PLL6_TIMEOUT; i++)
if (!(ccm_read_4(sc, A31_CCM_PLL6_CFG) &
A31_CCM_PLL6_CFG_REG_LOCK))
if ((ccm_read_4(sc, A31_CCM_PLL6_CFG) &
A31_CCM_PLL6_CFG_REG_LOCK) == A31_CCM_PLL6_CFG_REG_LOCK)
break;
if (i == PLL6_TIMEOUT)
return (ENXIO);