|
@@ -130,6 +130,10 @@ struct dentry;
|
|
* set then clock accuracy will be initialized to parent accuracy
|
|
* set then clock accuracy will be initialized to parent accuracy
|
|
* or 0 (perfect clock) if clock has no parent.
|
|
* or 0 (perfect clock) if clock has no parent.
|
|
*
|
|
*
|
|
|
|
+ * @get_phase: Queries the hardware to get the current phase of a clock.
|
|
|
|
+ * Returned values are 0-359 degrees on success, negative
|
|
|
|
+ * error codes on failure.
|
|
|
|
+ *
|
|
* @set_phase: Shift the phase this clock signal in degrees specified
|
|
* @set_phase: Shift the phase this clock signal in degrees specified
|
|
* by the second argument. Valid values for degrees are
|
|
* by the second argument. Valid values for degrees are
|
|
* 0-359. Return 0 on success, otherwise -EERROR.
|
|
* 0-359. Return 0 on success, otherwise -EERROR.
|
|
@@ -182,6 +186,7 @@ struct clk_ops {
|
|
unsigned long parent_rate, u8 index);
|
|
unsigned long parent_rate, u8 index);
|
|
unsigned long (*recalc_accuracy)(struct clk_hw *hw,
|
|
unsigned long (*recalc_accuracy)(struct clk_hw *hw,
|
|
unsigned long parent_accuracy);
|
|
unsigned long parent_accuracy);
|
|
|
|
+ int (*get_phase)(struct clk_hw *hw);
|
|
int (*set_phase)(struct clk_hw *hw, int degrees);
|
|
int (*set_phase)(struct clk_hw *hw, int degrees);
|
|
void (*init)(struct clk_hw *hw);
|
|
void (*init)(struct clk_hw *hw);
|
|
int (*debug_init)(struct clk_hw *hw, struct dentry *dentry);
|
|
int (*debug_init)(struct clk_hw *hw, struct dentry *dentry);
|