4 #ifdef CONFIG_COMMON_CLK
5 /* temporary clock configuration helper for platform devices */
13 void shmobile_clk_workaround(const struct clk_name *clks, int nr_clks,
16 #else /* CONFIG_COMMON_CLK */
17 /* legacy clock implementation */
20 unsigned long shmobile_fixed_ratio_clk_recalc(struct clk *clk);
21 extern struct sh_clk_ops shmobile_fixed_ratio_clk_ops;
29 #define SH_CLK_RATIO(name, m, d) \
30 static struct clk_ratio name ##_ratio = { \
35 #define SH_FIXED_RATIO_CLKg(name, p, r) \
38 .ops = &shmobile_fixed_ratio_clk_ops,\
39 .priv = &r ## _ratio, \
42 #define SH_FIXED_RATIO_CLK(name, p, r) \
43 static SH_FIXED_RATIO_CLKg(name, p, r)
45 #define SH_FIXED_RATIO_CLK_SET(name, p, m, d) \
46 SH_CLK_RATIO(name, m, d); \
47 SH_FIXED_RATIO_CLK(name, p, name)
49 #define SH_CLK_SET_RATIO(p, m, d) \
55 #endif /* CONFIG_COMMON_CLK */