1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __MACH_IMX_CLK_H
3 #define __MACH_IMX_CLK_H
5 #include <linux/bits.h>
6 #include <linux/spinlock.h>
7 #include <linux/clk-provider.h>
9 extern spinlock_t imx_ccm_lock
;
11 void imx_check_clocks(struct clk
*clks
[], unsigned int count
);
12 void imx_check_clk_hws(struct clk_hw
*clks
[], unsigned int count
);
14 void imx_register_uart_clocks(struct clk
** const clks
[]);
16 static inline void imx_register_uart_clocks(struct clk
** const clks
[])
20 void imx_mmdc_mask_handshake(void __iomem
*ccm_base
, unsigned int chn
);
21 void imx_unregister_clocks(struct clk
*clks
[], unsigned int count
);
22 void imx_unregister_hw_clocks(struct clk_hw
*hws
[], unsigned int count
);
24 extern void imx_cscmr1_fixup(u32
*val
);
35 enum imx_sscg_pll_type
{
40 enum imx_pll14xx_type
{
45 /* NOTE: Rate table should be kept sorted in descending order. */
46 struct imx_pll14xx_rate_table
{
54 struct imx_pll14xx_clk
{
55 enum imx_pll14xx_type type
;
56 const struct imx_pll14xx_rate_table
*rate_table
;
61 extern struct imx_pll14xx_clk imx_1416x_pll
;
62 extern struct imx_pll14xx_clk imx_1443x_pll
;
63 extern struct imx_pll14xx_clk imx_1443x_dram_pll
;
65 #define imx_clk_cpu(name, parent_name, div, mux, pll, step) \
66 to_clk(imx_clk_hw_cpu(name, parent_name, div, mux, pll, step))
68 #define clk_register_gate2(dev, name, parent_name, flags, reg, bit_idx, \
69 cgr_val, cgr_mask, clk_gate_flags, lock, share_count) \
70 to_clk(clk_hw_register_gate2(dev, name, parent_name, flags, reg, bit_idx, \
71 cgr_val, cgr_mask, clk_gate_flags, lock, share_count))
73 #define imx_clk_pllv3(type, name, parent_name, base, div_mask) \
74 to_clk(imx_clk_hw_pllv3(type, name, parent_name, base, div_mask))
76 #define imx_clk_pfd(name, parent_name, reg, idx) \
77 to_clk(imx_clk_hw_pfd(name, parent_name, reg, idx))
79 #define imx_clk_gate_exclusive(name, parent, reg, shift, exclusive_mask) \
80 to_clk(imx_clk_hw_gate_exclusive(name, parent, reg, shift, exclusive_mask))
82 #define imx_clk_fixed(name, rate) \
83 to_clk(imx_clk_hw_fixed(name, rate))
85 #define imx_clk_fixed_factor(name, parent, mult, div) \
86 to_clk(imx_clk_hw_fixed_factor(name, parent, mult, div))
88 #define imx_clk_divider(name, parent, reg, shift, width) \
89 to_clk(imx_clk_hw_divider(name, parent, reg, shift, width))
91 #define imx_clk_divider2(name, parent, reg, shift, width) \
92 to_clk(imx_clk_hw_divider2(name, parent, reg, shift, width))
94 #define imx_clk_divider_flags(name, parent, reg, shift, width, flags) \
95 to_clk(imx_clk_hw_divider_flags(name, parent, reg, shift, width, flags))
97 #define imx_clk_gate(name, parent, reg, shift) \
98 to_clk(imx_clk_hw_gate(name, parent, reg, shift))
100 #define imx_clk_gate_dis(name, parent, reg, shift) \
101 to_clk(imx_clk_hw_gate_dis(name, parent, reg, shift))
103 #define imx_clk_gate2(name, parent, reg, shift) \
104 to_clk(imx_clk_hw_gate2(name, parent, reg, shift))
106 #define imx_clk_gate2_flags(name, parent, reg, shift, flags) \
107 to_clk(imx_clk_hw_gate2_flags(name, parent, reg, shift, flags))
109 #define imx_clk_gate2_shared2(name, parent, reg, shift, share_count) \
110 to_clk(imx_clk_hw_gate2_shared2(name, parent, reg, shift, share_count))
112 #define imx_clk_gate3(name, parent, reg, shift) \
113 to_clk(imx_clk_hw_gate3(name, parent, reg, shift))
115 #define imx_clk_gate4(name, parent, reg, shift) \
116 to_clk(imx_clk_hw_gate4(name, parent, reg, shift))
118 #define imx_clk_mux(name, reg, shift, width, parents, num_parents) \
119 to_clk(imx_clk_hw_mux(name, reg, shift, width, parents, num_parents))
121 #define imx_clk_pllv1(type, name, parent, base) \
122 to_clk(imx_clk_hw_pllv1(type, name, parent, base))
124 #define imx_clk_pllv2(name, parent, base) \
125 to_clk(imx_clk_hw_pllv2(name, parent, base))
127 #define imx_clk_frac_pll(name, parent_name, base) \
128 to_clk(imx_clk_hw_frac_pll(name, parent_name, base))
130 #define imx_clk_sscg_pll(name, parent_names, num_parents, parent,\
131 bypass1, bypass2, base, flags) \
132 to_clk(imx_clk_hw_sscg_pll(name, parent_names, num_parents, parent,\
133 bypass1, bypass2, base, flags))
135 struct clk
*imx_clk_pll14xx(const char *name
, const char *parent_name
,
136 void __iomem
*base
, const struct imx_pll14xx_clk
*pll_clk
);
138 #define imx_clk_pll14xx(name, parent_name, base, pll_clk) \
139 to_clk(imx_clk_hw_pll14xx(name, parent_name, base, pll_clk))
141 struct clk_hw
*imx_dev_clk_hw_pll14xx(struct device
*dev
, const char *name
,
142 const char *parent_name
, void __iomem
*base
,
143 const struct imx_pll14xx_clk
*pll_clk
);
145 struct clk_hw
*imx_clk_hw_pllv1(enum imx_pllv1_type type
, const char *name
,
146 const char *parent
, void __iomem
*base
);
148 struct clk_hw
*imx_clk_hw_pllv2(const char *name
, const char *parent
,
151 struct clk_hw
*imx_clk_hw_frac_pll(const char *name
, const char *parent_name
,
154 struct clk_hw
*imx_clk_hw_sscg_pll(const char *name
,
155 const char * const *parent_names
,
157 u8 parent
, u8 bypass1
, u8 bypass2
,
159 unsigned long flags
);
161 enum imx_pllv3_type
{
174 struct clk_hw
*imx_clk_hw_pllv3(enum imx_pllv3_type type
, const char *name
,
175 const char *parent_name
, void __iomem
*base
, u32 div_mask
);
177 #define PLL_1416X_RATE(_rate, _m, _p, _s) \
185 #define PLL_1443X_RATE(_rate, _m, _p, _s, _k) \
194 struct clk_hw
*imx_clk_hw_pllv4(const char *name
, const char *parent_name
,
197 struct clk_hw
*clk_hw_register_gate2(struct device
*dev
, const char *name
,
198 const char *parent_name
, unsigned long flags
,
199 void __iomem
*reg
, u8 bit_idx
, u8 cgr_val
, u8 cgr_mask
,
200 u8 clk_gate_flags
, spinlock_t
*lock
,
201 unsigned int *share_count
);
203 struct clk
* imx_obtain_fixed_clock(
204 const char *name
, unsigned long rate
);
206 struct clk_hw
*imx_obtain_fixed_clock_hw(
207 const char *name
, unsigned long rate
);
209 struct clk_hw
*imx_obtain_fixed_clk_hw(struct device_node
*np
,
212 struct clk_hw
*imx_clk_hw_gate_exclusive(const char *name
, const char *parent
,
213 void __iomem
*reg
, u8 shift
, u32 exclusive_mask
);
215 struct clk_hw
*imx_clk_hw_pfd(const char *name
, const char *parent_name
,
216 void __iomem
*reg
, u8 idx
);
218 struct clk_hw
*imx_clk_hw_pfdv2(const char *name
, const char *parent_name
,
219 void __iomem
*reg
, u8 idx
);
221 struct clk_hw
*imx_clk_hw_busy_divider(const char *name
, const char *parent_name
,
222 void __iomem
*reg
, u8 shift
, u8 width
,
223 void __iomem
*busy_reg
, u8 busy_shift
);
225 struct clk_hw
*imx_clk_hw_busy_mux(const char *name
, void __iomem
*reg
, u8 shift
,
226 u8 width
, void __iomem
*busy_reg
, u8 busy_shift
,
227 const char * const *parent_names
, int num_parents
);
229 struct clk_hw
*imx7ulp_clk_hw_composite(const char *name
,
230 const char * const *parent_names
,
231 int num_parents
, bool mux_present
,
232 bool rate_present
, bool gate_present
,
235 struct clk_hw
*imx_clk_hw_fixup_divider(const char *name
, const char *parent
,
236 void __iomem
*reg
, u8 shift
, u8 width
,
237 void (*fixup
)(u32
*val
));
239 struct clk_hw
*imx_clk_hw_fixup_mux(const char *name
, void __iomem
*reg
,
240 u8 shift
, u8 width
, const char * const *parents
,
241 int num_parents
, void (*fixup
)(u32
*val
));
243 static inline struct clk
*to_clk(struct clk_hw
*hw
)
245 if (IS_ERR_OR_NULL(hw
))
250 static inline struct clk_hw
*imx_clk_hw_pll14xx(const char *name
, const char *parent_name
,
252 const struct imx_pll14xx_clk
*pll_clk
)
254 return imx_dev_clk_hw_pll14xx(NULL
, name
, parent_name
, base
, pll_clk
);
257 static inline struct clk_hw
*imx_clk_hw_fixed(const char *name
, int rate
)
259 return clk_hw_register_fixed_rate(NULL
, name
, NULL
, 0, rate
);
262 static inline struct clk_hw
*imx_clk_hw_mux_ldb(const char *name
, void __iomem
*reg
,
263 u8 shift
, u8 width
, const char * const *parents
,
266 return clk_hw_register_mux(NULL
, name
, parents
, num_parents
,
267 CLK_SET_RATE_NO_REPARENT
| CLK_SET_RATE_PARENT
, reg
,
268 shift
, width
, CLK_MUX_READ_ONLY
, &imx_ccm_lock
);
271 static inline struct clk_hw
*imx_clk_hw_fixed_factor(const char *name
,
272 const char *parent
, unsigned int mult
, unsigned int div
)
274 return clk_hw_register_fixed_factor(NULL
, name
, parent
,
275 CLK_SET_RATE_PARENT
, mult
, div
);
278 static inline struct clk_hw
*imx_clk_hw_divider(const char *name
,
280 void __iomem
*reg
, u8 shift
,
283 return clk_hw_register_divider(NULL
, name
, parent
, CLK_SET_RATE_PARENT
,
284 reg
, shift
, width
, 0, &imx_ccm_lock
);
287 static inline struct clk_hw
*imx_clk_hw_divider_flags(const char *name
,
289 void __iomem
*reg
, u8 shift
,
290 u8 width
, unsigned long flags
)
292 return clk_hw_register_divider(NULL
, name
, parent
, flags
,
293 reg
, shift
, width
, 0, &imx_ccm_lock
);
296 static inline struct clk_hw
*imx_clk_hw_divider2(const char *name
, const char *parent
,
297 void __iomem
*reg
, u8 shift
, u8 width
)
299 return clk_hw_register_divider(NULL
, name
, parent
,
300 CLK_SET_RATE_PARENT
| CLK_OPS_PARENT_ENABLE
,
301 reg
, shift
, width
, 0, &imx_ccm_lock
);
304 static inline struct clk
*imx_clk_divider2_flags(const char *name
,
305 const char *parent
, void __iomem
*reg
, u8 shift
, u8 width
,
308 return clk_register_divider(NULL
, name
, parent
,
309 flags
| CLK_SET_RATE_PARENT
| CLK_OPS_PARENT_ENABLE
,
310 reg
, shift
, width
, 0, &imx_ccm_lock
);
313 static inline struct clk_hw
*imx_clk_hw_gate_flags(const char *name
, const char *parent
,
314 void __iomem
*reg
, u8 shift
, unsigned long flags
)
316 return clk_hw_register_gate(NULL
, name
, parent
, flags
| CLK_SET_RATE_PARENT
, reg
,
317 shift
, 0, &imx_ccm_lock
);
320 static inline struct clk_hw
*imx_clk_hw_gate(const char *name
, const char *parent
,
321 void __iomem
*reg
, u8 shift
)
323 return clk_hw_register_gate(NULL
, name
, parent
, CLK_SET_RATE_PARENT
, reg
,
324 shift
, 0, &imx_ccm_lock
);
327 static inline struct clk_hw
*imx_dev_clk_hw_gate(struct device
*dev
, const char *name
,
328 const char *parent
, void __iomem
*reg
, u8 shift
)
330 return clk_hw_register_gate(dev
, name
, parent
, CLK_SET_RATE_PARENT
, reg
,
331 shift
, 0, &imx_ccm_lock
);
334 static inline struct clk_hw
*imx_clk_hw_gate_dis(const char *name
, const char *parent
,
335 void __iomem
*reg
, u8 shift
)
337 return clk_hw_register_gate(NULL
, name
, parent
, CLK_SET_RATE_PARENT
, reg
,
338 shift
, CLK_GATE_SET_TO_DISABLE
, &imx_ccm_lock
);
341 static inline struct clk_hw
*imx_clk_hw_gate_dis_flags(const char *name
, const char *parent
,
342 void __iomem
*reg
, u8 shift
, unsigned long flags
)
344 return clk_hw_register_gate(NULL
, name
, parent
, flags
| CLK_SET_RATE_PARENT
, reg
,
345 shift
, CLK_GATE_SET_TO_DISABLE
, &imx_ccm_lock
);
348 static inline struct clk_hw
*imx_clk_hw_gate2(const char *name
, const char *parent
,
349 void __iomem
*reg
, u8 shift
)
351 return clk_hw_register_gate2(NULL
, name
, parent
, CLK_SET_RATE_PARENT
, reg
,
352 shift
, 0x3, 0x3, 0, &imx_ccm_lock
, NULL
);
355 static inline struct clk_hw
*imx_clk_hw_gate2_flags(const char *name
, const char *parent
,
356 void __iomem
*reg
, u8 shift
, unsigned long flags
)
358 return clk_hw_register_gate2(NULL
, name
, parent
, flags
| CLK_SET_RATE_PARENT
, reg
,
359 shift
, 0x3, 0x3, 0, &imx_ccm_lock
, NULL
);
362 static inline struct clk_hw
*imx_clk_hw_gate2_shared(const char *name
,
363 const char *parent
, void __iomem
*reg
, u8 shift
,
364 unsigned int *share_count
)
366 return clk_hw_register_gate2(NULL
, name
, parent
, CLK_SET_RATE_PARENT
, reg
,
367 shift
, 0x3, 0x3, 0, &imx_ccm_lock
, share_count
);
370 static inline struct clk_hw
*imx_clk_hw_gate2_shared2(const char *name
,
371 const char *parent
, void __iomem
*reg
, u8 shift
,
372 unsigned int *share_count
)
374 return clk_hw_register_gate2(NULL
, name
, parent
, CLK_SET_RATE_PARENT
|
375 CLK_OPS_PARENT_ENABLE
, reg
, shift
, 0x3, 0x3, 0,
376 &imx_ccm_lock
, share_count
);
379 static inline struct clk_hw
*imx_dev_clk_hw_gate_shared(struct device
*dev
,
380 const char *name
, const char *parent
,
381 void __iomem
*reg
, u8 shift
,
382 unsigned int *share_count
)
384 return clk_hw_register_gate2(NULL
, name
, parent
, CLK_SET_RATE_PARENT
|
385 CLK_OPS_PARENT_ENABLE
, reg
, shift
, 0x1,
386 0x1, 0, &imx_ccm_lock
, share_count
);
389 static inline struct clk
*imx_clk_gate2_cgr(const char *name
,
390 const char *parent
, void __iomem
*reg
, u8 shift
, u8 cgr_val
)
392 return clk_register_gate2(NULL
, name
, parent
, CLK_SET_RATE_PARENT
, reg
,
393 shift
, cgr_val
, 0x3, 0, &imx_ccm_lock
, NULL
);
396 static inline struct clk_hw
*imx_clk_hw_gate3(const char *name
, const char *parent
,
397 void __iomem
*reg
, u8 shift
)
399 return clk_hw_register_gate(NULL
, name
, parent
,
400 CLK_SET_RATE_PARENT
| CLK_OPS_PARENT_ENABLE
,
401 reg
, shift
, 0, &imx_ccm_lock
);
404 static inline struct clk_hw
*imx_clk_hw_gate3_flags(const char *name
,
405 const char *parent
, void __iomem
*reg
, u8 shift
,
408 return clk_hw_register_gate(NULL
, name
, parent
,
409 flags
| CLK_SET_RATE_PARENT
| CLK_OPS_PARENT_ENABLE
,
410 reg
, shift
, 0, &imx_ccm_lock
);
413 #define imx_clk_gate3_flags(name, parent, reg, shift, flags) \
414 to_clk(imx_clk_hw_gate3_flags(name, parent, reg, shift, flags))
416 static inline struct clk_hw
*imx_clk_hw_gate4(const char *name
, const char *parent
,
417 void __iomem
*reg
, u8 shift
)
419 return clk_hw_register_gate2(NULL
, name
, parent
,
420 CLK_SET_RATE_PARENT
| CLK_OPS_PARENT_ENABLE
,
421 reg
, shift
, 0x3, 0x3, 0, &imx_ccm_lock
, NULL
);
424 static inline struct clk_hw
*imx_clk_hw_gate4_flags(const char *name
,
425 const char *parent
, void __iomem
*reg
, u8 shift
,
428 return clk_hw_register_gate2(NULL
, name
, parent
,
429 flags
| CLK_SET_RATE_PARENT
| CLK_OPS_PARENT_ENABLE
,
430 reg
, shift
, 0x3, 0x3, 0, &imx_ccm_lock
, NULL
);
433 #define imx_clk_gate4_flags(name, parent, reg, shift, flags) \
434 to_clk(imx_clk_hw_gate4_flags(name, parent, reg, shift, flags))
436 static inline struct clk_hw
*imx_clk_hw_mux(const char *name
, void __iomem
*reg
,
437 u8 shift
, u8 width
, const char * const *parents
,
440 return clk_hw_register_mux(NULL
, name
, parents
, num_parents
,
441 CLK_SET_RATE_NO_REPARENT
, reg
, shift
,
442 width
, 0, &imx_ccm_lock
);
445 static inline struct clk_hw
*imx_dev_clk_hw_mux(struct device
*dev
,
446 const char *name
, void __iomem
*reg
, u8 shift
,
447 u8 width
, const char * const *parents
, int num_parents
)
449 return clk_hw_register_mux(dev
, name
, parents
, num_parents
,
450 CLK_SET_RATE_NO_REPARENT
| CLK_SET_PARENT_GATE
,
451 reg
, shift
, width
, 0, &imx_ccm_lock
);
454 static inline struct clk
*imx_clk_mux2(const char *name
, void __iomem
*reg
,
455 u8 shift
, u8 width
, const char * const *parents
,
458 return clk_register_mux(NULL
, name
, parents
, num_parents
,
459 CLK_SET_RATE_NO_REPARENT
| CLK_OPS_PARENT_ENABLE
,
460 reg
, shift
, width
, 0, &imx_ccm_lock
);
463 static inline struct clk_hw
*imx_clk_hw_mux2(const char *name
, void __iomem
*reg
,
465 const char * const *parents
,
468 return clk_hw_register_mux(NULL
, name
, parents
, num_parents
,
469 CLK_SET_RATE_NO_REPARENT
|
470 CLK_OPS_PARENT_ENABLE
,
471 reg
, shift
, width
, 0, &imx_ccm_lock
);
474 static inline struct clk
*imx_clk_mux_flags(const char *name
,
475 void __iomem
*reg
, u8 shift
, u8 width
,
476 const char * const *parents
, int num_parents
,
479 return clk_register_mux(NULL
, name
, parents
, num_parents
,
480 flags
| CLK_SET_RATE_NO_REPARENT
, reg
, shift
, width
, 0,
484 static inline struct clk_hw
*imx_clk_hw_mux2_flags(const char *name
,
485 void __iomem
*reg
, u8 shift
, u8 width
,
486 const char * const *parents
,
487 int num_parents
, unsigned long flags
)
489 return clk_hw_register_mux(NULL
, name
, parents
, num_parents
,
490 flags
| CLK_SET_RATE_NO_REPARENT
| CLK_OPS_PARENT_ENABLE
,
491 reg
, shift
, width
, 0, &imx_ccm_lock
);
494 static inline struct clk
*imx_clk_mux2_flags(const char *name
,
495 void __iomem
*reg
, u8 shift
, u8 width
,
496 const char * const *parents
,
497 int num_parents
, unsigned long flags
)
499 return clk_register_mux(NULL
, name
, parents
, num_parents
,
500 flags
| CLK_SET_RATE_NO_REPARENT
| CLK_OPS_PARENT_ENABLE
,
501 reg
, shift
, width
, 0, &imx_ccm_lock
);
504 static inline struct clk_hw
*imx_clk_hw_mux_flags(const char *name
,
505 void __iomem
*reg
, u8 shift
,
507 const char * const *parents
,
511 return clk_hw_register_mux(NULL
, name
, parents
, num_parents
,
512 flags
| CLK_SET_RATE_NO_REPARENT
,
513 reg
, shift
, width
, 0, &imx_ccm_lock
);
516 static inline struct clk_hw
*imx_dev_clk_hw_mux_flags(struct device
*dev
,
518 void __iomem
*reg
, u8 shift
,
520 const char * const *parents
,
524 return clk_hw_register_mux(dev
, name
, parents
, num_parents
,
525 flags
| CLK_SET_RATE_NO_REPARENT
,
526 reg
, shift
, width
, 0, &imx_ccm_lock
);
529 struct clk_hw
*imx_clk_hw_cpu(const char *name
, const char *parent_name
,
530 struct clk
*div
, struct clk
*mux
, struct clk
*pll
,
533 #define IMX_COMPOSITE_CORE BIT(0)
534 #define IMX_COMPOSITE_BUS BIT(1)
536 struct clk_hw
*imx8m_clk_hw_composite_flags(const char *name
,
537 const char * const *parent_names
,
541 unsigned long flags
);
543 #define imx8m_clk_hw_composite_bus(name, parent_names, reg) \
544 imx8m_clk_hw_composite_flags(name, parent_names, \
545 ARRAY_SIZE(parent_names), reg, \
547 CLK_SET_RATE_NO_REPARENT | CLK_OPS_PARENT_ENABLE)
549 #define imx8m_clk_hw_composite_bus_critical(name, parent_names, reg) \
550 imx8m_clk_hw_composite_flags(name, parent_names, ARRAY_SIZE(parent_names), reg, \
552 CLK_SET_RATE_NO_REPARENT | CLK_OPS_PARENT_ENABLE | CLK_IS_CRITICAL)
554 #define imx8m_clk_hw_composite_core(name, parent_names, reg) \
555 imx8m_clk_hw_composite_flags(name, parent_names, \
556 ARRAY_SIZE(parent_names), reg, \
557 IMX_COMPOSITE_CORE, \
558 CLK_SET_RATE_NO_REPARENT | CLK_OPS_PARENT_ENABLE)
560 #define imx8m_clk_composite_flags(name, parent_names, num_parents, reg, \
562 to_clk(imx8m_clk_hw_composite_flags(name, parent_names, \
563 num_parents, reg, 0, flags))
565 #define __imx8m_clk_hw_composite(name, parent_names, reg, flags) \
566 imx8m_clk_hw_composite_flags(name, parent_names, \
567 ARRAY_SIZE(parent_names), reg, 0, \
568 flags | CLK_SET_RATE_NO_REPARENT | CLK_OPS_PARENT_ENABLE)
570 #define __imx8m_clk_composite(name, parent_names, reg, flags) \
571 to_clk(__imx8m_clk_hw_composite(name, parent_names, reg, flags))
573 #define imx8m_clk_hw_composite(name, parent_names, reg) \
574 __imx8m_clk_hw_composite(name, parent_names, reg, 0)
576 #define imx8m_clk_composite(name, parent_names, reg) \
577 __imx8m_clk_composite(name, parent_names, reg, 0)
579 #define imx8m_clk_hw_composite_critical(name, parent_names, reg) \
580 __imx8m_clk_hw_composite(name, parent_names, reg, CLK_IS_CRITICAL)
582 #define imx8m_clk_composite_critical(name, parent_names, reg) \
583 __imx8m_clk_composite(name, parent_names, reg, CLK_IS_CRITICAL)
585 struct clk_hw
*imx_clk_hw_divider_gate(const char *name
, const char *parent_name
,
586 unsigned long flags
, void __iomem
*reg
, u8 shift
, u8 width
,
587 u8 clk_divider_flags
, const struct clk_div_table
*table
,