diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-07 03:05:48 -0500 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-04-19 19:55:01 -0400 |
commit | 264b31719735eb1fcbed47cecdb20f517e804856 (patch) | |
tree | 717ba0c609fdefaf5adf56e3ff4ca57cbfa9d882 /include/linux/clk-provider.h | |
parent | e270d8cb13763f58107198e879cf396511ba2867 (diff) |
clk: mux: Add hw based registration APIs
Add registration APIs in the clk mux code to return struct clk_hw
pointers instead of struct clk pointers. This way we hide the
struct clk pointer from providers unless they need to use
consumer facing APIs.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r-- | include/linux/clk-provider.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index bf12050aadd5..d690d99b9c1c 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h | |||
@@ -478,14 +478,25 @@ struct clk *clk_register_mux(struct device *dev, const char *name, | |||
478 | unsigned long flags, | 478 | unsigned long flags, |
479 | void __iomem *reg, u8 shift, u8 width, | 479 | void __iomem *reg, u8 shift, u8 width, |
480 | u8 clk_mux_flags, spinlock_t *lock); | 480 | u8 clk_mux_flags, spinlock_t *lock); |
481 | struct clk_hw *clk_hw_register_mux(struct device *dev, const char *name, | ||
482 | const char * const *parent_names, u8 num_parents, | ||
483 | unsigned long flags, | ||
484 | void __iomem *reg, u8 shift, u8 width, | ||
485 | u8 clk_mux_flags, spinlock_t *lock); | ||
481 | 486 | ||
482 | struct clk *clk_register_mux_table(struct device *dev, const char *name, | 487 | struct clk *clk_register_mux_table(struct device *dev, const char *name, |
483 | const char * const *parent_names, u8 num_parents, | 488 | const char * const *parent_names, u8 num_parents, |
484 | unsigned long flags, | 489 | unsigned long flags, |
485 | void __iomem *reg, u8 shift, u32 mask, | 490 | void __iomem *reg, u8 shift, u32 mask, |
486 | u8 clk_mux_flags, u32 *table, spinlock_t *lock); | 491 | u8 clk_mux_flags, u32 *table, spinlock_t *lock); |
492 | struct clk_hw *clk_hw_register_mux_table(struct device *dev, const char *name, | ||
493 | const char * const *parent_names, u8 num_parents, | ||
494 | unsigned long flags, | ||
495 | void __iomem *reg, u8 shift, u32 mask, | ||
496 | u8 clk_mux_flags, u32 *table, spinlock_t *lock); | ||
487 | 497 | ||
488 | void clk_unregister_mux(struct clk *clk); | 498 | void clk_unregister_mux(struct clk *clk); |
499 | void clk_hw_unregister_mux(struct clk_hw *hw); | ||
489 | 500 | ||
490 | void of_fixed_factor_clk_setup(struct device_node *node); | 501 | void of_fixed_factor_clk_setup(struct device_node *node); |
491 | 502 | ||