diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-06-11 15:23:26 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-06-11 15:23:26 +0100 |
commit | 2631182bf93919577730e6a6c4345308db590057 (patch) | |
tree | 0cef28fdacc8b4d7cc42ec2f9f3049db726b8403 /arch/arm/mach-w90x900/clock.h | |
parent | 0aacfe1d239952a87c17e38e12df94c4ea979839 (diff) | |
parent | cc63262f27582369737edcb4e810265db2a98ab4 (diff) | |
download | kernel_goldelico_gta04-2631182bf93919577730e6a6c4345308db590057.zip kernel_goldelico_gta04-2631182bf93919577730e6a6c4345308db590057.tar.gz kernel_goldelico_gta04-2631182bf93919577730e6a6c4345308db590057.tar.bz2 |
Merge branch 'w90x900' into devel
Diffstat (limited to 'arch/arm/mach-w90x900/clock.h')
-rw-r--r-- | arch/arm/mach-w90x900/clock.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-w90x900/clock.h b/arch/arm/mach-w90x900/clock.h new file mode 100644 index 0000000..4f27bda --- /dev/null +++ b/arch/arm/mach-w90x900/clock.h @@ -0,0 +1,36 @@ +/* + * linux/arch/arm/mach-w90x900/clock.h + * + * Copyright (c) 2008 Nuvoton technology corporation + * + * Wan ZongShun <mcuos.com@gmail.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License. + */ + +#include <asm/clkdev.h> + +void w90x900_clk_enable(struct clk *clk, int enable); +void clks_register(struct clk_lookup *clks, size_t num); + +struct clk { + unsigned long cken; + unsigned int enabled; + void (*enable)(struct clk *, int enable); +}; + +#define DEFINE_CLK(_name, _ctrlbit) \ +struct clk clk_##_name = { \ + .enable = w90x900_clk_enable, \ + .cken = (1 << _ctrlbit), \ + } + +#define DEF_CLKLOOK(_clk, _devname, _conname) \ + { \ + .clk = _clk, \ + .dev_id = _devname, \ + .con_id = _conname, \ + } + |