]> git.baikalelectronics.ru Git - kernel.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)
commit1cba44f3ab3d0ccd229dd5be9dd6b3a93c3e0d4b
treeab36dc787ae5263a4190b644905d71cb2d1cf902
parent03a902e1a52be088bbe3ca573e175493f36d5f6f
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