Skip to content

MT8196 CPUFreq

This MR contains the bindings, driver changes and DT changes to enable cpufreq on MT8196. The CPU's performance is measurably raised by over a factor of two in all-core workloads.

Compared to downstream, I chose to integrate the MT8196 cpufreq stuff into the existing mediatek cpufreq-hw driver, as once you rip out all the unused stuff, the two drivers aren't that different from each other. For example, the csram thing cost me a good bit of time, but ultimately ended up being pointless, as it seemed to only be used for checking for a different type of mode that is not used with fdvfs, and to stop the "DVFS log" on panic or die, which is something I'm not entirely sure of the use for.

We also eliminate downstream's fdvfs node and its tiny driver, as it didn't seem useful to split two functions that just access some registers out into a separate driver. The fdvfs regs are instead accessed as mmio by the cpufreq driver.

Edited by Nicolas Frattaroli

Merge request reports

Loading