2 #include <linux/compiler.h>
5 static struct clk master_clk = {
7 .flags = CLK_ENABLE_ON_INIT,
8 .rate = CONFIG_SH_PCLK_FREQ,
11 static struct clk peripheral_clk = {
12 .name = "peripheral_clk",
13 .parent = &master_clk,
14 .flags = CLK_ENABLE_ON_INIT,
17 static struct clk bus_clk = {
19 .parent = &master_clk,
20 .flags = CLK_ENABLE_ON_INIT,
23 static struct clk cpu_clk = {
25 .parent = &master_clk,
26 .flags = CLK_ENABLE_ON_INIT,
30 * The ordering of these clocks matters, do not change it.
32 static struct clk *onchip_clocks[] = {
39 int __init __deprecated cpg_clk_init(void)
43 for (i = 0; i < ARRAY_SIZE(onchip_clocks); i++) {
44 struct clk *clk = onchip_clocks[i];
45 arch_init_clk_ops(&clk->ops, i);
47 ret |= clk_register(clk);
54 * Placeholder for compatability, until the lazy CPUs do this
57 int __init __weak arch_clk_init(void)
59 return cpg_clk_init();