summaryrefslogtreecommitdiff
path: root/include/linux/clk-provider.h
diff options
context:
space:
mode:
authorTaniya Das <tdas@codeaurora.org>2016-12-03 19:06:59 +0530
committerTaniya Das <tdas@codeaurora.org>2016-12-06 10:32:05 +0530
commit8c348bebe1f0b9e0f0608321713f32c61da45206 (patch)
treec7881e252f2df150a58cfd86fa598d1f967346d8 /include/linux/clk-provider.h
parent5142c18bae30439decd1c139999b54197e2aae91 (diff)
clk: Add vdd_class support for handoff and use_max_uV
Some dedicated power rails do not require a max voltage vote during bootup. Allow clock drivers to skip handoff for the corresponding VDD classes. Multiple vdd_class structures might share same set of regulators. If the FMAXes for these different vdd_class structures do not have the same level vote, there could be a conflict when setting voltage on the regulator. Add a flag use_max_uV to vote for INT_MAX as max_uV when calling regulator_set_voltage(). Constraints in the regulator driver make sure that the final voltage meets the requirement of that regulator's operational range. Change-Id: I15c9dc3ecf907723a136cbe90597ccafeba91af0 Signed-off-by: Taniya Das <tdas@codeaurora.org>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r--include/linux/clk-provider.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index aed90a4902c7..5cd588fa9f6a 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -269,6 +269,8 @@ struct regulator;
regulator
* @level_votes: array of votes for each level
* @num_levels: specifies the size of level_votes array
+ * @skip_handoff: do not vote for the max possible voltage during init
+ * @use_max_uV: use INT_MAX for max_uV when calling regulator_set_voltage
* @cur_level: the currently set voltage level
* @lock: lock to protect this struct
*/
@@ -280,6 +282,8 @@ struct clk_vdd_class {
int *vdd_uv;
int *level_votes;
int num_levels;
+ bool skip_handoff;
+ bool use_max_uV;
unsigned long cur_level;
struct mutex lock;
};