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 #define DEFINE_CLK(clk_bank, clk_name, clk_slot, clk_rate) \
34 static struct clk __clk_##clk_bank##_##clk_slot = { \
36 .clk_ops = &clk_ops##clk_bank, \
41 void __clk_init_enabled(struct clk *);
42 void __clk_init_disabled(struct clk *);
44 #define DEFINE_CLK(clk_ref, clk_name, clk_rate) \
45 static struct clk clk_##clk_ref = { \
49 #endif /* MCFPM_PPMCR0 */