aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-01-15 13:47:22 -0500
committerMike Turquette <mturquette@linaro.org>2014-01-16 15:00:57 -0500
commit3fa2252b7a78a8057017471a28f47b306e95ee26 (patch)
treee3cf04e4099a9414b15d27f6428f7726f29d7a05 /Documentation
parentd0d44dd4ac58bc547646a9d0e65b4648f97cb533 (diff)
clk: Add set_rate_and_parent() op
Some of Qualcomm's clocks can change their parent and rate at the same time with a single register write. Add support for this hardware to the common clock framework by adding a new set_rate_and_parent() op. When the clock framework determines that both the parent and the rate are going to change during clk_set_rate() it will call the .set_rate_and_parent() op if available and fall back to calling .set_parent() followed by .set_rate() otherwise. Reviewed-by: James Hogan <james.hogan@imgtec.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/clk.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/clk.txt b/Documentation/clk.txt
index eb20198783cd..699ef2a323b1 100644
--- a/Documentation/clk.txt
+++ b/Documentation/clk.txt
@@ -77,6 +77,9 @@ the operations defined in clk.h:
77 int (*set_parent)(struct clk_hw *hw, u8 index); 77 int (*set_parent)(struct clk_hw *hw, u8 index);
78 u8 (*get_parent)(struct clk_hw *hw); 78 u8 (*get_parent)(struct clk_hw *hw);
79 int (*set_rate)(struct clk_hw *hw, unsigned long); 79 int (*set_rate)(struct clk_hw *hw, unsigned long);
80 int (*set_rate_and_parent)(struct clk_hw *hw,
81 unsigned long rate,
82 unsigned long parent_rate, u8 index);
80 unsigned long (*recalc_accuracy)(struct clk_hw *hw, 83 unsigned long (*recalc_accuracy)(struct clk_hw *hw,
81 unsigned long parent_accuracy); 84 unsigned long parent_accuracy);
82 void (*init)(struct clk_hw *hw); 85 void (*init)(struct clk_hw *hw);