x86/xen: resume timer irqs early
[linux/fpc-iii.git] / drivers / clk / sunxi / clk-factors.h
blobf49851cc43804d57cce6f8d7035965059500853d
1 #ifndef __MACH_SUNXI_CLK_FACTORS_H
2 #define __MACH_SUNXI_CLK_FACTORS_H
4 #include <linux/clk-provider.h>
5 #include <linux/clkdev.h>
7 #define SUNXI_FACTORS_NOT_APPLICABLE (0)
9 struct clk_factors_config {
10 u8 nshift;
11 u8 nwidth;
12 u8 kshift;
13 u8 kwidth;
14 u8 mshift;
15 u8 mwidth;
16 u8 pshift;
17 u8 pwidth;
20 struct clk *clk_register_factors(struct device *dev, const char *name,
21 const char *parent_name,
22 unsigned long flags, void __iomem *reg,
23 struct clk_factors_config *config,
24 void (*get_factors) (u32 *rate, u32 parent_rate,
25 u8 *n, u8 *k, u8 *m, u8 *p),
26 spinlock_t *lock);
27 #endif