]> git.ipfire.org Git - thirdparty/u-boot.git/commit
arm64: versal: Add frequency scaling support
authorIzhar Ameer Shaikh <izhar.ameer.shaikh@xilinx.com>
Fri, 14 Jun 2019 19:47:25 +0000 (12:47 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 28 Jun 2019 09:34:14 +0000 (11:34 +0200)
commit8e841bd8280d33b78d8e330737564cc17834855e
treea6d66aed66570e68903064b31c91d092b0a22b20
parent100650c71913d23a1e531af2c5285b51deb33821
arm64: versal: Add frequency scaling support

Add CPU Operating Performance Points (OPP) table and ACPU clock for
cpu0. This is needed by cpufreq driver to manage CPU frequency scaling.

e.g.
In the design if we have 72 as the multiplier and 33.333 MHz as the ref
frequency:

pllfreq = 33.33*72 = 2399.76 MHz
It is the pll output.

Now, with the integral divisors we can achieve:

2399.76 / 2 = 1199.88 MHz
2399.76 / 3 = 799.92 MHz
2399.76 / 4 = 599.94 MHz
2399.76 / 5 = 479.95 MHz
2399.76 / 6 = 399.96 MHz
2399.76 / 7 = 342.82 MHz
etc.

Therefore, some of them are chosen to be in the device tree.

For more reference: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841831/CPU+frequency+scaling

Signed-off-by: Izhar Ameer Shaikh <izhar.ameer.shaikh@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/versal-clk.dtsi
arch/arm/dts/versal.dtsi