]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: scu: add cpu frequency scaling support
authorAnson Huang <anson.huang@nxp.com>
Tue, 26 Feb 2019 05:17:36 +0000 (05:17 +0000)
committerStephen Boyd <sboyd@kernel.org>
Tue, 26 Feb 2019 18:03:38 +0000 (10:03 -0800)
commit4f26e899ee32cadb659e2a304f6a5c04ba33fa0a
tree00a05ac93e901ae7535dadfaf9bb591aa2b72c81
parent8306f0dc4a06803e4b22ad92f16275ba058ce9e3
clk: imx: scu: add cpu frequency scaling support

On NXP's i.MX SoCs with system controller inside, CPU frequency
scaling can ONLY be done by system controller firmware, and it
can ONLY be requested from secure mode, so Linux kernel has to
call ARM SMC to trap to ARM-Trusted-Firmware to request system
controller firmware to do CPU frequency scaling.

This patch adds i.MX system controller CPU frequency scaling support,
it reuses cpufreq-dt driver and implement the CPU frequency scaling
inside SCU clock driver.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-scu.c