Commit a897575e authored by Sibi Sankar's avatar Sibi Sankar Committed by Viresh Kumar

firmware: arm_scmi: Add support for marking certain frequencies as turbo

All opps above the sustained frequency are treated as turbo, so mark them
accordingly.
Suggested-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Reviewed-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Signed-off-by: default avatarSibi Sankar <quic_sibis@quicinc.com>
Reviewed-by: default avatarDhruva Gole <d-gole@ti.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 480c64ae
......@@ -819,6 +819,9 @@ static int scmi_dvfs_device_opps_add(const struct scmi_protocol_handle *ph,
else
freq = dom->opp[idx].indicative_freq * dom->mult_factor;
/* All OPPs above the sustained frequency are treated as turbo */
data.turbo = freq > dom->sustained_freq_khz * 1000;
data.level = dom->opp[idx].perf;
data.freq = freq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment