MiSTer-devel / Linux-Kernel_MiSTer

Other
12 stars 17 forks source link

Improve clock transition stability and get OSC1 freq from DT #35

Closed coolbho3k closed 1 year ago

coolbho3k commented 1 year ago

Here are two minor improvements to the overclock driver that was merged a few days ago.

  1. I noticed that very rarely - once in a few hundred thousand transitions - large clock jumps (from 400 MHz directly to 1200 MHz) might crash the system. Now I put the main PLL into bypass when transitioning clock multipliers. This makes transitions a bit slower, but more stable. The change is good for > 24 hours and 3 million clock transitions on my MiSTer.

trans_table

  1. Now we get the frequency of OSC1 from the device tree. This has no functional difference but it's a bit cleaner than hard coding it.