mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
clk: add clk_set_parent()
Clocks may support multiple parents: this change introduces an optional operation on the clk-uclass to set a clock's parent. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by: David Wu <david.wu@rock-chips.com> Series-changes: 2 - Fixed David's email address.
This commit is contained in:
@@ -177,6 +177,17 @@ ulong clk_get_rate(struct clk *clk);
|
||||
*/
|
||||
ulong clk_set_rate(struct clk *clk, ulong rate);
|
||||
|
||||
/**
|
||||
* clk_set_parent() - Set current clock parent.
|
||||
*
|
||||
* @clk: A clock struct that was previously successfully requested by
|
||||
* clk_request/get_by_*().
|
||||
* @parent: A clock struct that was previously successfully requested by
|
||||
* clk_request/get_by_*().
|
||||
* @return new rate, or -ve error code.
|
||||
*/
|
||||
int clk_set_parent(struct clk *clk, struct clk *parent);
|
||||
|
||||
/**
|
||||
* clk_enable() - Enable (turn on) a clock.
|
||||
*
|
||||
|
Reference in New Issue
Block a user