summaryrefslogtreecommitdiff
path: root/include/linux/pm_opp.h
diff options
context:
space:
mode:
authorSibi Sankar <quic_sibis@quicinc.com>2024-02-27 20:34:32 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2024-03-11 08:09:24 +0300
commitabb3f9717a67a2666b2bc2f19543a657e3d4ad63 (patch)
treefdfa14d86af53617ee096440882269ddb53f90a0 /include/linux/pm_opp.h
parent6613476e225e090cc9aad49be7fa504e290dd33d (diff)
downloadlinux-abb3f9717a67a2666b2bc2f19543a657e3d4ad63.tar.xz
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 'include/linux/pm_opp.h')
-rw-r--r--include/linux/pm_opp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h
index 76dcb7f37bcd..fa9b63c6bf0b 100644
--- a/include/linux/pm_opp.h
+++ b/include/linux/pm_opp.h
@@ -87,12 +87,14 @@ struct dev_pm_opp_config {
/**
* struct dev_pm_opp_data - The data to use to initialize an OPP.
+ * @turbo: Flag to indicate whether the OPP is to be marked turbo or not.
* @level: The performance level for the OPP. Set level to OPP_LEVEL_UNSET if
* level field isn't used.
* @freq: The clock rate in Hz for the OPP.
* @u_volt: The voltage in uV for the OPP.
*/
struct dev_pm_opp_data {
+ bool turbo;
unsigned int level;
unsigned long freq;
unsigned long u_volt;