cpufreq: rockchip: Change read margin according to initial voltage

The default read margin is 4, it may not match the initial voltage.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I24c2ee3141f2259c83f2a5219c579115dff4d260
This commit is contained in:
Finley Xiao
2022-08-14 10:16:30 +08:00
committed by Tao Huang
parent 120cd00e08
commit 5b350c02e8

View File

@@ -591,6 +591,7 @@ static int rockchip_cpufreq_cluster_init(int cpu, struct cluster_info *cluster)
&opp_info->low_rm);
if (!of_property_read_u32(np, "intermediate-threshold-freq", &freq))
opp_info->intermediate_threshold_freq = freq * 1000;
rockchip_init_read_margin(dev, opp_info, reg_name);
}
if (opp_info->data && opp_info->data->get_soc_info)
opp_info->data->get_soc_info(dev, np, &bin, &process);