cpufreq: rockchip: Provide runtime initialised driver
authorFinley Xiao <finley.xiao@rock-chips.com>
Wed, 12 Apr 2017 04:31:23 +0000 (12:31 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 18 Apr 2017 08:04:06 +0000 (16:04 +0800)
commit92e3b22798304cc2eeaa42c2d4f9eacb50125fae
tree091afe188a4393cccbe58970937f396eed99689c
parent2b2efa8820c80c2e6cf0939f02b6d59e89fde922
cpufreq: rockchip: Provide runtime initialised driver

This path introduces a rockchip-cpufreq driver, which can determine
available OPPs and select a suitable voltage for available OPPs
according to SoC version and leakage valuses in eFuse at runtime.

If all cpus of a cluster are downed, opp table will be removed,
prop-name and supported_hw are noneffective. So add a hotcpu notifier
to set them again when a cpu of the closed cluster is upped.

Change-Id: I43ab3e2cad4a9fefd5be5b0596cd841c392d7a8b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
drivers/cpufreq/rockchip-cpufreq.c