ARM: cpu topology: Add debugfs interface for cpu_power
[cmplus.git] / arch / arm / mach-shmobile / clock.c
blob6b7c7c42bc8fc529678fe7e77d01878299d049c4
1 /*
2 * SH-Mobile Clock Framework
4 * Copyright (C) 2010 Magnus Damm
6 * Used together with arch/arm/common/clkdev.c and drivers/sh/clk.c.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 2 of the License.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #include <linux/kernel.h>
23 #include <linux/init.h>
24 #include <linux/sh_clk.h>
26 int __init clk_init(void)
28 /* Kick the child clocks.. */
29 recalculate_root_clocks();
31 /* Enable the necessary init clocks */
32 clk_enable_init_clocks();
34 return 0;
37 int __clk_get(struct clk *clk)
39 return 1;
41 EXPORT_SYMBOL(__clk_get);
43 void __clk_put(struct clk *clk)
46 EXPORT_SYMBOL(__clk_put);