clkdev.h 442 字节
Newer Older
1 2 3 4
#ifndef __ASM_MACH_CLKDEV_H
#define __ASM_MACH_CLKDEV_H

#include <linux/module.h>
5
#include <plat/clock.h>
6 7 8

struct clk {
	unsigned long		rate;
9
	const struct clk_ops	*ops;
10
	struct module		*owner;
11
	const struct icst_params *params;
12 13
	void __iomem		*vcoreg;
	void			*data;
14 15 16 17 18 19 20 21 22 23 24 25 26
};

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