Page MenuHomeFreeBSD

arm64: rockchip: Don't always put PLL to normal mode
ClosedPublic

Authored by manu on May 6 2019, 8:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 23, 5:02 AM
Unknown Object (File)
Wed, Jul 22, 3:06 PM
Unknown Object (File)
Tue, Jul 21, 11:11 PM
Unknown Object (File)
Sat, Jul 11, 9:56 AM
Unknown Object (File)
Sat, Jul 4, 10:13 AM
Unknown Object (File)
Sat, Jul 4, 8:13 AM
Unknown Object (File)
Sat, Jul 4, 2:08 AM
Unknown Object (File)
Tue, Jun 30, 10:07 PM
Subscribers

Details

Summary

We used to put every PLL in normal mode (meaning that the output would
be the result of the PLL configuration) instead of slow mode (the output
is equal to the external oscillator frequency, 24-26Mhz) but this doesn't
work for most of the PLLs as when we put them into normal mode the registers
configuring the output frequency haven't been set.
Add a normal_mode member in clk_pll_def/clk_pll_sc struct and if it's true
we then set the PLL to normal mode.
For now only set it to the LPLL and BPLL (Little cluster PLL and Big cluster
PLL respectively).

Test Plan

Tested on Rockpro64

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable