mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 14:56:43 +07:00
9bf5b2ef67
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
27 lines
442 B
C
27 lines
442 B
C
#ifndef __ASM_MACH_CLKDEV_H
|
|
#define __ASM_MACH_CLKDEV_H
|
|
|
|
#include <linux/module.h>
|
|
#include <plat/clock.h>
|
|
|
|
struct clk {
|
|
unsigned long rate;
|
|
const struct clk_ops *ops;
|
|
struct module *owner;
|
|
const struct icst_params *params;
|
|
void __iomem *vcoreg;
|
|
void *data;
|
|
};
|
|
|
|
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
|