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>
6 #include <linux/spinlock.h>
8 #define SUNXI_FACTORS_NOT_APPLICABLE (0)
10 struct clk_factors_config {
26 struct clk_factors_config *table;
27 void (*getter) (u32 *rate, u32 parent_rate, u8 *n, u8 *k, u8 *m, u8 *p);
34 struct clk_factors_config *config;
35 void (*get_factors) (u32 *rate, u32 parent, u8 *n, u8 *k, u8 *m, u8 *p);
39 struct clk * __init sunxi_factors_register(struct device_node *node,
40 const struct factors_data *data,