blob: 0a06df8cde2b58ace6b741ba3f917083b468374e [file] [log] [blame]
Paul Mundt36ddf312006-01-16 22:14:17 -08001/*
2 * arch/sh/kernel/cpu/clock.c - SuperH clock framework
3 *
Paul Mundtb1f6cfe2009-05-12 04:27:43 +09004 * Copyright (C) 2005 - 2009 Paul Mundt
Paul Mundt36ddf312006-01-16 22:14:17 -08005 *
6 * This clock framework is derived from the OMAP version by:
7 *
Paul Mundtb1f6cfe2009-05-12 04:27:43 +09008 * Copyright (C) 2004 - 2008 Nokia Corporation
Paul Mundt36ddf312006-01-16 22:14:17 -08009 * Written by Tuukka Tikkanen <tuukka.tikkanen@elektrobit.com>
10 *
Paul Mundt1d118562006-12-01 13:15:14 +090011 * Modified for omap shared clock framework by Tony Lindgren <tony@atomide.com>
12 *
Paul Mundt36ddf312006-01-16 22:14:17 -080013 * This file is subject to the terms and conditions of the GNU General Public
14 * License. See the file "COPYING" in the main directory of this archive
15 * for more details.
16 */
17#include <linux/kernel.h>
18#include <linux/init.h>
19#include <linux/module.h>
Paul Mundt237b98f2006-09-27 17:28:20 +090020#include <linux/mutex.h>
Paul Mundt36ddf312006-01-16 22:14:17 -080021#include <linux/list.h>
Francesco VIRLINZI4a550262009-03-11 07:42:05 +000022#include <linux/kobject.h>
23#include <linux/sysdev.h>
Paul Mundt36ddf312006-01-16 22:14:17 -080024#include <linux/seq_file.h>
25#include <linux/err.h>
Paul Mundt1d118562006-12-01 13:15:14 +090026#include <linux/platform_device.h>
Paul Mundtdb62e5b2007-04-26 12:17:20 +090027#include <linux/proc_fs.h>
Paul Mundt36ddf312006-01-16 22:14:17 -080028#include <asm/clock.h>
29#include <asm/timer.h>
30
31static LIST_HEAD(clock_list);
32static DEFINE_SPINLOCK(clock_lock);
Paul Mundt237b98f2006-09-27 17:28:20 +090033static DEFINE_MUTEX(clock_list_sem);
Paul Mundt36ddf312006-01-16 22:14:17 -080034
35/*
36 * Each subtype is expected to define the init routines for these clocks,
37 * as each subtype (or processor family) will have these clocks at the
38 * very least. These are all provided through the CPG, which even some of
39 * the more quirky parts (such as ST40, SH4-202, etc.) still have.
40 *
41 * The processor-specific code is expected to register any additional
42 * clock sources that are of interest.
43 */
44static struct clk master_clk = {
45 .name = "master_clk",
Paul Mundtb1f6cfe2009-05-12 04:27:43 +090046 .flags = CLK_ALWAYS_ENABLED,
Paul Mundt36ddf312006-01-16 22:14:17 -080047 .rate = CONFIG_SH_PCLK_FREQ,
Paul Mundt36ddf312006-01-16 22:14:17 -080048};
49
50static struct clk module_clk = {
51 .name = "module_clk",
52 .parent = &master_clk,
Paul Mundtb1f6cfe2009-05-12 04:27:43 +090053 .flags = CLK_ALWAYS_ENABLED,
Paul Mundt36ddf312006-01-16 22:14:17 -080054};
55
56static struct clk bus_clk = {
57 .name = "bus_clk",
58 .parent = &master_clk,
Paul Mundtb1f6cfe2009-05-12 04:27:43 +090059 .flags = CLK_ALWAYS_ENABLED,
Paul Mundt36ddf312006-01-16 22:14:17 -080060};
61
62static struct clk cpu_clk = {
63 .name = "cpu_clk",
64 .parent = &master_clk,
65 .flags = CLK_ALWAYS_ENABLED,
66};
67
68/*
69 * The ordering of these clocks matters, do not change it.
70 */
71static struct clk *onchip_clocks[] = {
72 &master_clk,
73 &module_clk,
74 &bus_clk,
75 &cpu_clk,
76};
77
Paul Mundta02cb232009-05-12 03:50:44 +090078/* Used for clocks that always have same value as the parent clock */
79unsigned long followparent_recalc(struct clk *clk)
80{
81 return clk->parent->rate;
82}
83
Paul Mundtb1f6cfe2009-05-12 04:27:43 +090084/* Propagate rate to children */
85void propagate_rate(struct clk *tclk)
86{
87 struct clk *clkp;
88
89 list_for_each_entry(clkp, &tclk->children, sibling) {
90 if (clkp->ops->recalc)
91 clkp->rate = clkp->ops->recalc(clkp);
92 propagate_rate(clkp);
93 }
94}
95
Magnus Damm4f5ecaa2009-05-08 08:23:29 +000096static void __clk_init(struct clk *clk)
Paul Mundt36ddf312006-01-16 22:14:17 -080097{
98 /*
99 * See if this is the first time we're enabling the clock, some
100 * clocks that are always enabled still require "special"
101 * initialization. This is especially true if the clock mode
102 * changes and the clock needs to hunt for the proper set of
103 * divisors to use before it can effectively recalc.
104 */
Magnus Dammb3cacf32009-05-07 10:31:39 +0000105
Magnus Damm4f5ecaa2009-05-08 08:23:29 +0000106 if (clk->flags & CLK_NEEDS_INIT) {
Paul Mundt36ddf312006-01-16 22:14:17 -0800107 if (clk->ops && clk->ops->init)
108 clk->ops->init(clk);
109
Magnus Damm4f5ecaa2009-05-08 08:23:29 +0000110 clk->flags &= ~CLK_NEEDS_INIT;
111 }
112}
dmitry pervushin1929cb32007-04-24 13:39:09 +0900113
Magnus Damm4f5ecaa2009-05-08 08:23:29 +0000114static int __clk_enable(struct clk *clk)
115{
116 if (!clk)
117 return -EINVAL;
118
119 clk->usecount++;
120
121 /* nothing to do if always enabled */
122 if (clk->flags & CLK_ALWAYS_ENABLED)
123 return 0;
124
125 if (clk->usecount == 1) {
126 __clk_init(clk);
127
128 __clk_enable(clk->parent);
129
130 if (clk->ops && clk->ops->enable)
131 clk->ops->enable(clk);
132 }
Paul Mundt36ddf312006-01-16 22:14:17 -0800133
Paul Mundt36ddf312006-01-16 22:14:17 -0800134 return 0;
135}
136
137int clk_enable(struct clk *clk)
138{
139 unsigned long flags;
140 int ret;
141
142 spin_lock_irqsave(&clock_lock, flags);
143 ret = __clk_enable(clk);
144 spin_unlock_irqrestore(&clock_lock, flags);
145
146 return ret;
147}
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900148EXPORT_SYMBOL_GPL(clk_enable);
Paul Mundt36ddf312006-01-16 22:14:17 -0800149
Adrian Bunk4c1cfab2008-06-18 03:36:50 +0300150static void __clk_disable(struct clk *clk)
Paul Mundt36ddf312006-01-16 22:14:17 -0800151{
Magnus Damm4f5ecaa2009-05-08 08:23:29 +0000152 if (!clk)
153 return;
154
155 clk->usecount--;
156
157 WARN_ON(clk->usecount < 0);
dmitry pervushin1929cb32007-04-24 13:39:09 +0900158
Paul Mundt36ddf312006-01-16 22:14:17 -0800159 if (clk->flags & CLK_ALWAYS_ENABLED)
160 return;
161
Magnus Damm4f5ecaa2009-05-08 08:23:29 +0000162 if (clk->usecount == 0) {
dmitry pervushin1929cb32007-04-24 13:39:09 +0900163 if (likely(clk->ops && clk->ops->disable))
164 clk->ops->disable(clk);
Magnus Damm4f5ecaa2009-05-08 08:23:29 +0000165
166 __clk_disable(clk->parent);
dmitry pervushin1929cb32007-04-24 13:39:09 +0900167 }
Paul Mundt36ddf312006-01-16 22:14:17 -0800168}
169
170void clk_disable(struct clk *clk)
171{
172 unsigned long flags;
173
174 spin_lock_irqsave(&clock_lock, flags);
175 __clk_disable(clk);
176 spin_unlock_irqrestore(&clock_lock, flags);
177}
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900178EXPORT_SYMBOL_GPL(clk_disable);
Paul Mundt36ddf312006-01-16 22:14:17 -0800179
Paul Mundtb1f6cfe2009-05-12 04:27:43 +0900180static LIST_HEAD(root_clks);
181
182/**
183 * recalculate_root_clocks - recalculate and propagate all root clocks
184 *
185 * Recalculates all root clocks (clocks with no parent), which if the
186 * clock's .recalc is set correctly, should also propagate their rates.
187 * Called at init.
188 */
189void recalculate_root_clocks(void)
190{
191 struct clk *clkp;
192
193 list_for_each_entry(clkp, &root_clks, sibling) {
194 if (clkp->ops->recalc)
195 clkp->rate = clkp->ops->recalc(clkp);
196 propagate_rate(clkp);
197 }
198}
199
Paul Mundt36ddf312006-01-16 22:14:17 -0800200int clk_register(struct clk *clk)
201{
Paul Mundtb1f6cfe2009-05-12 04:27:43 +0900202 if (clk == NULL || IS_ERR(clk))
203 return -EINVAL;
204
205 /*
206 * trap out already registered clocks
207 */
208 if (clk->node.next || clk->node.prev)
209 return 0;
210
Paul Mundt237b98f2006-09-27 17:28:20 +0900211 mutex_lock(&clock_list_sem);
Paul Mundt36ddf312006-01-16 22:14:17 -0800212
Paul Mundtb1f6cfe2009-05-12 04:27:43 +0900213 INIT_LIST_HEAD(&clk->children);
214
215 if (clk->parent)
216 list_add(&clk->sibling, &clk->parent->children);
217 else
218 list_add(&clk->sibling, &root_clks);
219
Paul Mundt36ddf312006-01-16 22:14:17 -0800220 list_add(&clk->node, &clock_list);
Magnus Damm4f5ecaa2009-05-08 08:23:29 +0000221 clk->usecount = 0;
222 clk->flags |= CLK_NEEDS_INIT;
Paul Mundt36ddf312006-01-16 22:14:17 -0800223
Paul Mundt237b98f2006-09-27 17:28:20 +0900224 mutex_unlock(&clock_list_sem);
Paul Mundt36ddf312006-01-16 22:14:17 -0800225
dmitry pervushin1929cb32007-04-24 13:39:09 +0900226 if (clk->flags & CLK_ALWAYS_ENABLED) {
Magnus Damm4f5ecaa2009-05-08 08:23:29 +0000227 __clk_init(clk);
dmitry pervushin1929cb32007-04-24 13:39:09 +0900228 pr_debug( "Clock '%s' is ALWAYS_ENABLED\n", clk->name);
dmitry pervushin1929cb32007-04-24 13:39:09 +0900229 if (clk->ops && clk->ops->enable)
230 clk->ops->enable(clk);
231 pr_debug( "Enabled.");
232 }
233
Paul Mundt36ddf312006-01-16 22:14:17 -0800234 return 0;
235}
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900236EXPORT_SYMBOL_GPL(clk_register);
Paul Mundt36ddf312006-01-16 22:14:17 -0800237
238void clk_unregister(struct clk *clk)
239{
Paul Mundt237b98f2006-09-27 17:28:20 +0900240 mutex_lock(&clock_list_sem);
Paul Mundtb1f6cfe2009-05-12 04:27:43 +0900241 list_del(&clk->sibling);
Paul Mundt36ddf312006-01-16 22:14:17 -0800242 list_del(&clk->node);
Paul Mundt237b98f2006-09-27 17:28:20 +0900243 mutex_unlock(&clock_list_sem);
Paul Mundt36ddf312006-01-16 22:14:17 -0800244}
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900245EXPORT_SYMBOL_GPL(clk_unregister);
Paul Mundt36ddf312006-01-16 22:14:17 -0800246
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900247unsigned long clk_get_rate(struct clk *clk)
Paul Mundt36ddf312006-01-16 22:14:17 -0800248{
249 return clk->rate;
250}
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900251EXPORT_SYMBOL_GPL(clk_get_rate);
Paul Mundt36ddf312006-01-16 22:14:17 -0800252
253int clk_set_rate(struct clk *clk, unsigned long rate)
254{
dmitry pervushin1929cb32007-04-24 13:39:09 +0900255 return clk_set_rate_ex(clk, rate, 0);
256}
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900257EXPORT_SYMBOL_GPL(clk_set_rate);
dmitry pervushin1929cb32007-04-24 13:39:09 +0900258
259int clk_set_rate_ex(struct clk *clk, unsigned long rate, int algo_id)
260{
Paul Mundt36ddf312006-01-16 22:14:17 -0800261 int ret = -EOPNOTSUPP;
262
263 if (likely(clk->ops && clk->ops->set_rate)) {
264 unsigned long flags;
265
266 spin_lock_irqsave(&clock_lock, flags);
dmitry pervushin1929cb32007-04-24 13:39:09 +0900267 ret = clk->ops->set_rate(clk, rate, algo_id);
Paul Mundtb1f6cfe2009-05-12 04:27:43 +0900268 if (ret == 0) {
269 if (clk->ops->recalc)
270 clk->rate = clk->ops->recalc(clk);
271 propagate_rate(clk);
272 }
Paul Mundt36ddf312006-01-16 22:14:17 -0800273 spin_unlock_irqrestore(&clock_lock, flags);
274 }
275
Paul Mundt36ddf312006-01-16 22:14:17 -0800276 return ret;
277}
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900278EXPORT_SYMBOL_GPL(clk_set_rate_ex);
Paul Mundt36ddf312006-01-16 22:14:17 -0800279
280void clk_recalc_rate(struct clk *clk)
281{
Paul Mundtb1f6cfe2009-05-12 04:27:43 +0900282 unsigned long flags;
Paul Mundt36ddf312006-01-16 22:14:17 -0800283
Paul Mundtb1f6cfe2009-05-12 04:27:43 +0900284 if (!clk->ops->recalc)
285 return;
Paul Mundt36ddf312006-01-16 22:14:17 -0800286
Paul Mundtb1f6cfe2009-05-12 04:27:43 +0900287 spin_lock_irqsave(&clock_lock, flags);
288 clk->rate = clk->ops->recalc(clk);
289 propagate_rate(clk);
290 spin_unlock_irqrestore(&clock_lock, flags);
Paul Mundt36ddf312006-01-16 22:14:17 -0800291}
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900292EXPORT_SYMBOL_GPL(clk_recalc_rate);
Paul Mundt36ddf312006-01-16 22:14:17 -0800293
Francesco VIRLINZId680c762009-03-11 07:40:54 +0000294int clk_set_parent(struct clk *clk, struct clk *parent)
295{
Paul Mundtb1f6cfe2009-05-12 04:27:43 +0900296 unsigned long flags;
Francesco VIRLINZId680c762009-03-11 07:40:54 +0000297 int ret = -EINVAL;
Francesco VIRLINZId680c762009-03-11 07:40:54 +0000298
299 if (!parent || !clk)
300 return ret;
301
Paul Mundtb1f6cfe2009-05-12 04:27:43 +0900302 spin_lock_irqsave(&clock_lock, flags);
303 if (clk->usecount == 0) {
304 if (clk->ops->set_parent)
305 ret = clk->ops->set_parent(clk, parent);
306 if (ret == 0) {
307 if (clk->ops->recalc)
308 clk->rate = clk->ops->recalc(clk);
309 propagate_rate(clk);
310 }
311 } else
312 ret = -EBUSY;
313 spin_unlock_irqrestore(&clock_lock, flags);
Francesco VIRLINZId680c762009-03-11 07:40:54 +0000314
Francesco VIRLINZId680c762009-03-11 07:40:54 +0000315 return ret;
316}
317EXPORT_SYMBOL_GPL(clk_set_parent);
318
319struct clk *clk_get_parent(struct clk *clk)
320{
321 return clk->parent;
322}
323EXPORT_SYMBOL_GPL(clk_get_parent);
324
Paul Mundtf6991b02007-07-20 13:29:09 +0900325long clk_round_rate(struct clk *clk, unsigned long rate)
326{
327 if (likely(clk->ops && clk->ops->round_rate)) {
328 unsigned long flags, rounded;
329
330 spin_lock_irqsave(&clock_lock, flags);
331 rounded = clk->ops->round_rate(clk, rate);
332 spin_unlock_irqrestore(&clock_lock, flags);
333
334 return rounded;
335 }
336
337 return clk_get_rate(clk);
338}
339EXPORT_SYMBOL_GPL(clk_round_rate);
340
Paul Mundt1d118562006-12-01 13:15:14 +0900341/*
342 * Returns a clock. Note that we first try to use device id on the bus
343 * and clock name. If this fails, we try to use clock name only.
344 */
345struct clk *clk_get(struct device *dev, const char *id)
Paul Mundt36ddf312006-01-16 22:14:17 -0800346{
347 struct clk *p, *clk = ERR_PTR(-ENOENT);
Paul Mundt1d118562006-12-01 13:15:14 +0900348 int idno;
349
350 if (dev == NULL || dev->bus != &platform_bus_type)
351 idno = -1;
352 else
353 idno = to_platform_device(dev)->id;
Paul Mundt36ddf312006-01-16 22:14:17 -0800354
Paul Mundt237b98f2006-09-27 17:28:20 +0900355 mutex_lock(&clock_list_sem);
Paul Mundt36ddf312006-01-16 22:14:17 -0800356 list_for_each_entry(p, &clock_list, node) {
Paul Mundt1d118562006-12-01 13:15:14 +0900357 if (p->id == idno &&
358 strcmp(id, p->name) == 0 && try_module_get(p->owner)) {
359 clk = p;
360 goto found;
361 }
362 }
363
364 list_for_each_entry(p, &clock_list, node) {
Paul Mundt36ddf312006-01-16 22:14:17 -0800365 if (strcmp(id, p->name) == 0 && try_module_get(p->owner)) {
366 clk = p;
367 break;
368 }
369 }
Paul Mundt1d118562006-12-01 13:15:14 +0900370
371found:
Paul Mundt237b98f2006-09-27 17:28:20 +0900372 mutex_unlock(&clock_list_sem);
Paul Mundt36ddf312006-01-16 22:14:17 -0800373
374 return clk;
375}
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900376EXPORT_SYMBOL_GPL(clk_get);
Paul Mundt36ddf312006-01-16 22:14:17 -0800377
378void clk_put(struct clk *clk)
379{
380 if (clk && !IS_ERR(clk))
381 module_put(clk->owner);
382}
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900383EXPORT_SYMBOL_GPL(clk_put);
Paul Mundt36ddf312006-01-16 22:14:17 -0800384
385void __init __attribute__ ((weak))
386arch_init_clk_ops(struct clk_ops **ops, int type)
387{
388}
389
Paul Mundtfa439722008-09-04 18:53:58 +0900390int __init __attribute__ ((weak))
dmitry pervushindfbbbe92007-05-15 08:42:22 +0900391arch_clk_init(void)
392{
Paul Mundtfa439722008-09-04 18:53:58 +0900393 return 0;
dmitry pervushindfbbbe92007-05-15 08:42:22 +0900394}
395
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900396static int show_clocks(char *buf, char **start, off_t off,
397 int len, int *eof, void *data)
398{
399 struct clk *clk;
400 char *p = buf;
401
402 list_for_each_entry_reverse(clk, &clock_list, node) {
403 unsigned long rate = clk_get_rate(clk);
404
Magnus Damm152fe362008-07-17 19:05:54 +0900405 p += sprintf(p, "%-12s\t: %ld.%02ldMHz\t%s\n", clk->name,
406 rate / 1000000, (rate % 1000000) / 10000,
407 ((clk->flags & CLK_ALWAYS_ENABLED) ||
Magnus Damm4f5ecaa2009-05-08 08:23:29 +0000408 clk->usecount > 0) ?
Magnus Damm152fe362008-07-17 19:05:54 +0900409 "enabled" : "disabled");
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900410 }
411
412 return p - buf;
413}
414
Francesco VIRLINZI4a550262009-03-11 07:42:05 +0000415#ifdef CONFIG_PM
416static int clks_sysdev_suspend(struct sys_device *dev, pm_message_t state)
417{
418 static pm_message_t prev_state;
419 struct clk *clkp;
420
421 switch (state.event) {
422 case PM_EVENT_ON:
423 /* Resumeing from hibernation */
Paul Mundtb68d8202009-05-12 03:45:08 +0900424 if (prev_state.event != PM_EVENT_FREEZE)
425 break;
Francesco VIRLINZI50cca712009-03-13 08:08:01 +0000426
Paul Mundtb68d8202009-05-12 03:45:08 +0900427 list_for_each_entry(clkp, &clock_list, node) {
428 if (likely(clkp->ops)) {
429 unsigned long rate = clkp->rate;
430
431 if (likely(clkp->ops->set_parent))
432 clkp->ops->set_parent(clkp,
433 clkp->parent);
434 if (likely(clkp->ops->set_rate))
435 clkp->ops->set_rate(clkp,
436 rate, NO_CHANGE);
437 else if (likely(clkp->ops->recalc))
438 clkp->rate = clkp->ops->recalc(clkp);
439 }
Francesco VIRLINZI4a550262009-03-11 07:42:05 +0000440 }
441 break;
442 case PM_EVENT_FREEZE:
443 break;
444 case PM_EVENT_SUSPEND:
445 break;
446 }
447
448 prev_state = state;
449 return 0;
450}
451
452static int clks_sysdev_resume(struct sys_device *dev)
453{
454 return clks_sysdev_suspend(dev, PMSG_ON);
455}
456
457static struct sysdev_class clks_sysdev_class = {
458 .name = "clks",
459};
460
461static struct sysdev_driver clks_sysdev_driver = {
462 .suspend = clks_sysdev_suspend,
463 .resume = clks_sysdev_resume,
464};
465
466static struct sys_device clks_sysdev_dev = {
467 .cls = &clks_sysdev_class,
468};
469
470static int __init clk_sysdev_init(void)
471{
472 sysdev_class_register(&clks_sysdev_class);
473 sysdev_driver_register(&clks_sysdev_class, &clks_sysdev_driver);
474 sysdev_register(&clks_sysdev_dev);
475
476 return 0;
477}
478subsys_initcall(clk_sysdev_init);
479#endif
480
Paul Mundt36ddf312006-01-16 22:14:17 -0800481int __init clk_init(void)
482{
483 int i, ret = 0;
484
Paul Mundte4c2cfe2006-09-27 12:31:01 +0900485 BUG_ON(!master_clk.rate);
Paul Mundt36ddf312006-01-16 22:14:17 -0800486
487 for (i = 0; i < ARRAY_SIZE(onchip_clocks); i++) {
488 struct clk *clk = onchip_clocks[i];
489
490 arch_init_clk_ops(&clk->ops, i);
491 ret |= clk_register(clk);
Paul Mundt36ddf312006-01-16 22:14:17 -0800492 }
493
Paul Mundtfa439722008-09-04 18:53:58 +0900494 ret |= arch_clk_init();
dmitry pervushindfbbbe92007-05-15 08:42:22 +0900495
Paul Mundt36ddf312006-01-16 22:14:17 -0800496 /* Kick the child clocks.. */
Paul Mundtb1f6cfe2009-05-12 04:27:43 +0900497 recalculate_root_clocks();
Paul Mundt36ddf312006-01-16 22:14:17 -0800498
499 return ret;
500}
501
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900502static int __init clk_proc_init(void)
Paul Mundt36ddf312006-01-16 22:14:17 -0800503{
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900504 struct proc_dir_entry *p;
505 p = create_proc_read_entry("clocks", S_IRUSR, NULL,
506 show_clocks, NULL);
507 if (unlikely(!p))
508 return -EINVAL;
Paul Mundt36ddf312006-01-16 22:14:17 -0800509
510 return 0;
511}
Paul Mundtdb62e5b2007-04-26 12:17:20 +0900512subsys_initcall(clk_proc_init);