2008-11-09 04:08:08 +08:00
|
|
|
#ifndef __ASM_MACH_CLKDEV_H
|
|
|
|
#define __ASM_MACH_CLKDEV_H
|
|
|
|
|
|
|
|
#include <linux/module.h>
|
2010-03-02 00:18:39 +08:00
|
|
|
#include <plat/clock.h>
|
2008-11-09 04:08:08 +08:00
|
|
|
|
|
|
|
struct clk {
|
|
|
|
unsigned long rate;
|
2010-03-02 00:18:39 +08:00
|
|
|
const struct clk_ops *ops;
|
2008-11-09 04:08:08 +08:00
|
|
|
struct module *owner;
|
2010-01-17 00:27:28 +08:00
|
|
|
const struct icst_params *params;
|
2010-01-15 04:09:34 +08:00
|
|
|
void __iomem *vcoreg;
|
|
|
|
void *data;
|
2008-11-09 04:08:08 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
static inline int __clk_get(struct clk *clk)
|
|
|
|
{
|
|
|
|
return try_module_get(clk->owner);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void __clk_put(struct clk *clk)
|
|
|
|
{
|
|
|
|
module_put(clk->owner);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|