aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/clk-provider.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r--include/linux/clk-provider.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 51efb9ec3e37..78842f46f152 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -31,6 +31,7 @@
31#define CLK_GET_RATE_NOCACHE BIT(6) /* do not use the cached clk rate */ 31#define CLK_GET_RATE_NOCACHE BIT(6) /* do not use the cached clk rate */
32#define CLK_SET_RATE_NO_REPARENT BIT(7) /* don't re-parent on rate change */ 32#define CLK_SET_RATE_NO_REPARENT BIT(7) /* don't re-parent on rate change */
33#define CLK_GET_ACCURACY_NOCACHE BIT(8) /* do not use the cached clk accuracy */ 33#define CLK_GET_ACCURACY_NOCACHE BIT(8) /* do not use the cached clk accuracy */
34#define CLK_RECALC_NEW_RATES BIT(9) /* recalc rates after notifications */
34 35
35struct clk_hw; 36struct clk_hw;
36struct clk_core; 37struct clk_core;
@@ -209,7 +210,7 @@ struct clk_ops {
209struct clk_init_data { 210struct clk_init_data {
210 const char *name; 211 const char *name;
211 const struct clk_ops *ops; 212 const struct clk_ops *ops;
212 const char **parent_names; 213 const char * const *parent_names;
213 u8 num_parents; 214 u8 num_parents;
214 unsigned long flags; 215 unsigned long flags;
215}; 216};
@@ -426,12 +427,14 @@ extern const struct clk_ops clk_mux_ops;
426extern const struct clk_ops clk_mux_ro_ops; 427extern const struct clk_ops clk_mux_ro_ops;
427 428
428struct clk *clk_register_mux(struct device *dev, const char *name, 429struct clk *clk_register_mux(struct device *dev, const char *name,
429 const char **parent_names, u8 num_parents, unsigned long flags, 430 const char * const *parent_names, u8 num_parents,
431 unsigned long flags,
430 void __iomem *reg, u8 shift, u8 width, 432 void __iomem *reg, u8 shift, u8 width,
431 u8 clk_mux_flags, spinlock_t *lock); 433 u8 clk_mux_flags, spinlock_t *lock);
432 434
433struct clk *clk_register_mux_table(struct device *dev, const char *name, 435struct clk *clk_register_mux_table(struct device *dev, const char *name,
434 const char **parent_names, u8 num_parents, unsigned long flags, 436 const char * const *parent_names, u8 num_parents,
437 unsigned long flags,
435 void __iomem *reg, u8 shift, u32 mask, 438 void __iomem *reg, u8 shift, u32 mask,
436 u8 clk_mux_flags, u32 *table, spinlock_t *lock); 439 u8 clk_mux_flags, u32 *table, spinlock_t *lock);
437 440
@@ -457,7 +460,7 @@ struct clk_fixed_factor {
457 unsigned int div; 460 unsigned int div;
458}; 461};
459 462
460extern struct clk_ops clk_fixed_factor_ops; 463extern const struct clk_ops clk_fixed_factor_ops;
461struct clk *clk_register_fixed_factor(struct device *dev, const char *name, 464struct clk *clk_register_fixed_factor(struct device *dev, const char *name,
462 const char *parent_name, unsigned long flags, 465 const char *parent_name, unsigned long flags,
463 unsigned int mult, unsigned int div); 466 unsigned int mult, unsigned int div);
@@ -518,7 +521,7 @@ struct clk_composite {
518}; 521};
519 522
520struct clk *clk_register_composite(struct device *dev, const char *name, 523struct clk *clk_register_composite(struct device *dev, const char *name,
521 const char **parent_names, int num_parents, 524 const char * const *parent_names, int num_parents,
522 struct clk_hw *mux_hw, const struct clk_ops *mux_ops, 525 struct clk_hw *mux_hw, const struct clk_ops *mux_ops,
523 struct clk_hw *rate_hw, const struct clk_ops *rate_ops, 526 struct clk_hw *rate_hw, const struct clk_ops *rate_ops,
524 struct clk_hw *gate_hw, const struct clk_ops *gate_ops, 527 struct clk_hw *gate_hw, const struct clk_ops *gate_ops,
@@ -625,6 +628,8 @@ struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec,
625 void *data); 628 void *data);
626struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data); 629struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data);
627int of_clk_get_parent_count(struct device_node *np); 630int of_clk_get_parent_count(struct device_node *np);
631int of_clk_parent_fill(struct device_node *np, const char **parents,
632 unsigned int size);
628const char *of_clk_get_parent_name(struct device_node *np, int index); 633const char *of_clk_get_parent_name(struct device_node *np, int index);
629 634
630void of_clk_init(const struct of_device_id *matches); 635void of_clk_init(const struct of_device_id *matches);