1 /* SPDX-License-Identifier: GPL-2.0 */
3 * mcfclk.h -- coldfire specific clock structure
13 void (*enable)(struct clk *);
14 void (*disable)(struct clk *);
18 struct clk_ops *clk_ops;
20 unsigned long enabled;
25 extern struct clk_ops clk_ops0;
27 extern struct clk_ops clk_ops1;
28 #endif /* MCFPM_PPMCR1 */
30 extern struct clk_ops clk_ops2;
32 #define DEFINE_CLK(clk_bank, clk_name, clk_slot, clk_rate) \
33 static struct clk __clk_##clk_bank##_##clk_slot = { \
34 .clk_ops = &clk_ops##clk_bank, \
39 void __clk_init_enabled(struct clk *);
40 void __clk_init_disabled(struct clk *);
42 #define DEFINE_CLK(clk_ref, clk_name, clk_rate) \
43 static struct clk clk_##clk_ref = { \
46 #endif /* MCFPM_PPMCR0 */