diff options
author | Sibi Sankar <quic_sibis@quicinc.com> | 2024-02-27 18:34:32 +0100 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2024-03-11 06:09:24 +0100 |
commit | abb3f9717a67a2666b2bc2f19543a657e3d4ad63 (patch) | |
tree | fdfa14d86af53617ee096440882269ddb53f90a0 /drivers/opp | |
parent | Linux 6.8-rc1 (diff) | |
download | linux-abb3f9717a67a2666b2bc2f19543a657e3d4ad63.tar.xz linux-abb3f9717a67a2666b2bc2f19543a657e3d4ad63.zip |
OPP: Extend dev_pm_opp_data with turbo support
Let's extend the dev_pm_opp_data with a turbo variable, to allow users to
specify if it's a boost frequency for a dynamically added OPP.
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/opp')
-rw-r--r-- | drivers/opp/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c index c4e0432ae42a..e233734b7220 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -2065,6 +2065,7 @@ int _opp_add_v1(struct opp_table *opp_table, struct device *dev, /* populate the opp table */ new_opp->rates[0] = data->freq; new_opp->level = data->level; + new_opp->turbo = data->turbo; tol = u_volt * opp_table->voltage_tolerance_v1 / 100; new_opp->supplies[0].u_volt = u_volt; new_opp->supplies[0].u_volt_min = u_volt - tol; |