]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: mvebu: armada-37xx-periph: add DVFS support for cpu clocks
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 30 Nov 2017 13:40:29 +0000 (14:40 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 21 Dec 2017 23:11:34 +0000 (15:11 -0800)
commit2089dc33ea0e3917465929d4020fbff3d6dbf7f4
treeab36dc787ae5263a4190b644905d71cb2d1cf902
parent9818a7a4fd10f72537cdf2a5ec3402f2c245ea24
clk: mvebu: armada-37xx-periph: add DVFS support for cpu clocks

When DVFS is enabled the CPU clock setting is done using an other set of
registers.

These Power Management registers are exposed through a syscon as they
will also be used by other drivers such as the cpufreq.

This patch add the possibility to modify the CPU frequency using the
associate load level matching the target frequency. Then all the
frequency switch is handle by the hardware.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
[sboyd@codeaurora.org: Grow a local variable for regmap pointer
to keep lines shorter]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mvebu/armada-37xx-periph.c