1 /* SPDX-License-Identifier: GPL-2.0 */
3 * mcfclk.h -- coldfire specific clock structure
13 void (*enable
)(struct clk
*);
14 void (*disable
)(struct clk
*);
19 struct clk_ops
*clk_ops
;
21 unsigned long enabled
;
25 extern struct clk
*mcf_clks
[];
28 extern struct clk_ops clk_ops0
;
30 extern struct clk_ops clk_ops1
;
31 #endif /* MCFPM_PPMCR1 */
33 extern struct clk_ops clk_ops2
;
35 #define DEFINE_CLK(clk_bank, clk_name, clk_slot, clk_rate) \
36 static struct clk __clk_##clk_bank##_##clk_slot = { \
38 .clk_ops = &clk_ops##clk_bank, \
43 void __clk_init_enabled(struct clk
*);
44 void __clk_init_disabled(struct clk
*);
46 #define DEFINE_CLK(clk_ref, clk_name, clk_rate) \
47 static struct clk clk_##clk_ref = { \
51 #endif /* MCFPM_PPMCR0 */