diff options
author | Liang Chen <cl@rock-chips.com> | 2018-03-15 15:17:56 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-03-16 17:49:29 +0800 |
commit | 3ccca07e3fb75ad7a1ceb76641934d6c9fe4a1d2 (patch) | |
tree | 60bfdb36789487502eb6ea72eb7a55e7a13f98e8 | |
parent | f31ed416e5064502d7538e6e223a4012de36ffab (diff) |
cpufreq: dt: adjust opp-table by board IR-Drop
Change-Id: Ia51daad4bf5b73621875d1608cd0e486024fcf95
Signed-off-by: Liang Chen <cl@rock-chips.com>
-rw-r--r-- | drivers/cpufreq/cpufreq-dt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 795b3b104750..b785a328adc5 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -28,6 +28,9 @@ #include <linux/regulator/consumer.h> #include <linux/slab.h> #include <linux/thermal.h> +#ifdef CONFIG_ARCH_ROCKCHIP +#include <soc/rockchip/rockchip_opp_select.h> +#endif #define MAX_CLUSTERS 2 @@ -224,6 +227,7 @@ static int cpufreq_init(struct cpufreq_policy *policy) dev_pm_opp_of_remove_table(cpu_dev); } } + rockchip_adjust_opp_by_irdrop(cpu_dev); #else dev_pm_opp_of_cpumask_add_table(policy->cpus); #endif |