[ARM] 5602/1: Add sub clock api for w90p910 platform
Add sub clock api for w90p910 platform. Signed-off-by: Wan ZongShun <mcuos.com@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:

committed by
Russell King

parent
d2c2419550
commit
db58e90fdb
@@ -13,6 +13,7 @@
|
||||
#include <asm/clkdev.h>
|
||||
|
||||
void w90x900_clk_enable(struct clk *clk, int enable);
|
||||
void w90x900_subclk_enable(struct clk *clk, int enable);
|
||||
void clks_register(struct clk_lookup *clks, size_t num);
|
||||
|
||||
struct clk {
|
||||
@@ -27,6 +28,13 @@ struct clk clk_##_name = { \
|
||||
.cken = (1 << _ctrlbit), \
|
||||
}
|
||||
|
||||
#define DEFINE_SUBCLK(_name, _ctrlbit) \
|
||||
struct clk clk_##_name = { \
|
||||
.enable = w90x900_subclk_enable, \
|
||||
.cken = (1 << _ctrlbit), \
|
||||
}
|
||||
|
||||
|
||||
#define DEF_CLKLOOK(_clk, _devname, _conname) \
|
||||
{ \
|
||||
.clk = _clk, \
|
||||
|
Reference in New Issue
Block a user