diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-11-27 07:49:42 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-12-05 08:45:32 +0100 |
commit | 0c39e1973b10dd8b8667eb6aebbe46bad0f11792 (patch) | |
tree | b22ca7f42cba46944a6e81703bbd51f803bb9658 /include/linux | |
parent | 2f0b936e8f3e0544cd8a1d12cb0a76d018081f39 (diff) | |
download | barebox-0c39e1973b10dd8b8667eb6aebbe46bad0f11792.tar.gz barebox-0c39e1973b10dd8b8667eb6aebbe46bad0f11792.tar.xz |
clk: implement clk_hw_reparent
clk_hw_reparent does a bit of work in Linux to update the cached clock
tree, but we have no cached clock tree in barebox, so just implement it
as empty stub.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20231127064947.2207726-9-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/clk.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index 28ed2d2bfd..18fda074fd 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -431,6 +431,11 @@ struct clk_divider { extern const struct clk_ops clk_divider_ops; extern const struct clk_ops clk_divider_ro_ops; +static inline void clk_hw_reparent(struct clk_hw *hw, struct clk_hw *new_parent) +{ + /* clk_get_parent always reads from HW, so nothing to update here */ +} + unsigned long divider_recalc_rate(struct clk *clk, unsigned long parent_rate, unsigned int val, const struct clk_div_table *table, |