Merge tag '3.15-fixes' of git://neil.brown.name/md
[deliverable/linux.git] / drivers / clk / sunxi / clk-factors.h
CommitLineData
e874a669
EL
1#ifndef __MACH_SUNXI_CLK_FACTORS_H
2#define __MACH_SUNXI_CLK_FACTORS_H
3
4#include <linux/clk-provider.h>
5#include <linux/clkdev.h>
6
7#define SUNXI_FACTORS_NOT_APPLICABLE (0)
8
9struct 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;
18};
19
40a5dcba
EL
20struct clk_factors {
21 struct clk_hw hw;
22 void __iomem *reg;
23 struct clk_factors_config *config;
24 void (*get_factors) (u32 *rate, u32 parent, u8 *n, u8 *k, u8 *m, u8 *p);
25 spinlock_t *lock;
26};
27
28extern const struct clk_ops clk_factors_ops;
e874a669 29#endif
This page took 0.121223 seconds and 5 git commands to generate.