1 #ifndef __ASM_SH_CLOCK_H
2 #define __ASM_SH_CLOCK_H
4 #include <linux/kref.h>
5 #include <linux/list.h>
6 #include <linux/seq_file.h>
11 void (*init
)(struct clk
*clk
);
12 void (*enable
)(struct clk
*clk
);
13 void (*disable
)(struct clk
*clk
);
14 void (*recalc
)(struct clk
*clk
);
15 int (*set_rate
)(struct clk
*clk
, unsigned long rate
);
19 struct list_head node
;
33 #define CLK_ALWAYS_ENABLED (1 << 0)
34 #define CLK_RATE_PROPAGATES (1 << 1)
36 /* Should be defined by processor-specific code */
37 void arch_init_clk_ops(struct clk_ops
**, int type
);
39 /* arch/sh/kernel/cpu/clock.c */
42 int __clk_enable(struct clk
*);
43 int clk_enable(struct clk
*);
45 void __clk_disable(struct clk
*);
46 void clk_disable(struct clk
*);
48 int clk_set_rate(struct clk
*, unsigned long rate
);
49 unsigned long clk_get_rate(struct clk
*);
50 void clk_recalc_rate(struct clk
*);
52 struct clk
*clk_get(const char *id
);
53 void clk_put(struct clk
*);
55 int clk_register(struct clk
*);
56 void clk_unregister(struct clk
*);
58 int show_clocks(struct seq_file
*m
);
60 #endif /* __ASM_SH_CLOCK_H */