Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-btrfs-devel.git] / arch / arm / mach-nuc93x / clock.h
blob4de1f1da9dc52d43c2898cbfa1d1d5a38efc382f
1 /*
2 * linux/arch/arm/mach-nuc93x/clock.h
4 * Copyright (c) 2008 Nuvoton technology corporation
6 * Wan ZongShun <mcuos.com@gmail.com>
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; either version 2 of the License.
13 #include <linux/clkdev.h>
15 void nuc93x_clk_enable(struct clk *clk, int enable);
16 void clks_register(struct clk_lookup *clks, size_t num);
18 struct clk {
19 unsigned long cken;
20 unsigned int enabled;
21 void (*enable)(struct clk *, int enable);
24 #define DEFINE_CLK(_name, _ctrlbit) \
25 struct clk clk_##_name = { \
26 .enable = nuc93x_clk_enable, \
27 .cken = (1 << _ctrlbit), \
30 #define DEF_CLKLOOK(_clk, _devname, _conname) \
31 { \
32 .clk = _clk, \
33 .dev_id = _devname, \
34 .con_id = _conname, \