From fbd35aede4e2c60a1557bd824a4a194893d93695 Mon Sep 17 00:00:00 2001 From: Liang Chen Date: Fri, 21 Jul 2023 09:20:57 +0800 Subject: [PATCH] cpufreq: rockchip: set supported hw version for opp Change-Id: I0fcd74b14cfeee03ce5ba022f256087f843aaab9 Signed-off-by: Liang Chen --- drivers/cpufreq/rockchip-cpufreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpufreq/rockchip-cpufreq.c b/drivers/cpufreq/rockchip-cpufreq.c index ce3e08a22b55..804fcfd1ed1c 100644 --- a/drivers/cpufreq/rockchip-cpufreq.c +++ b/drivers/cpufreq/rockchip-cpufreq.c @@ -605,11 +605,13 @@ static int rockchip_cpufreq_cluster_init(int cpu, struct cluster_info *cluster) } if (opp_info->data && opp_info->data->get_soc_info) opp_info->data->get_soc_info(dev, np, &bin, &process); + rockchip_get_soc_info(dev, np, &bin, &process); rockchip_get_scale_volt_sel(dev, "cpu_leakage", reg_name, bin, process, &cluster->scale, &volt_sel); if (opp_info->data && opp_info->data->set_soc_info) opp_info->data->set_soc_info(dev, np, bin, process, volt_sel); pname_table = rockchip_set_opp_prop_name(dev, process, volt_sel); + rockchip_set_opp_supported_hw(dev, np, bin, volt_sel); if (of_find_property(dev->of_node, "cpu-supply", NULL) && of_find_property(dev->of_node, "mem-supply", NULL)) {