Fu740 PLL's not locking?

Hi, all,

Per the fu740-c000-manual-v1p2, p. 84, when I set PRCI's core_pllcfg pllr, pllf and pllq fields to 0, 76 and 2 respectively, and busywait on pll_config's plllock bit, it’s always 0. I assume it’s not active low, correct?

I tried a couple of other PLL’s (ethernet and DDR) and got the same result.

Another engineer I reached out to using the unmatched board also independently reported having the same issue with PLL’s never locking.

I then looked through the u-boot code and IIUC, it appears to be delaying 70us and then blindly continuing, rather than waiting on the PLL lock.

I was wondering if anyone could confirm that the PLL locks on the fu740 flip to 1 once the PLL is stable? Bonus if you can point me to a code snippet showing how they should be exercised (for, say, core_pllcfg).

Thank you!

There is an old forum post for the fe310 that might be relevant.

It points to some freedom-e-sdk code at the end. Here is the source code for that.

This is a very different SoC, but it might be the same PLL subsystem so this might be relevant.


I see the PLL’s for core and DDR are locked when reading pllcfg from FUSDK Linux using:

devmem2  0x10000004 w

devmem2  0x1000000c w

I’m looking at bit 31 in the registers which is the PLL lock status and it’s high.

1 Like

I’m told that the lock bit may not be reliable and can be ignored, if you wait the maximum amount of time that a lock should take, which is 70us in the worst case.