From 802d901450b7a180ca55c0679feb8d1f5141cc72 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 6 Dec 2012 12:42:50 +0100 Subject: clk: Add clk table based divider support For easy support of table based dividers. Signed-off-by: Sascha Hauer --- include/linux/clk.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/linux/clk.h b/include/linux/clk.h index 00588bff05..91574f23d0 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -181,9 +181,19 @@ struct clk { struct clk **parents; }; +#define CLK_ALWAYS_ENABLED (1 << 0) + +struct clk_div_table { + unsigned int val; + unsigned int div; +}; + struct clk *clk_fixed(const char *name, int rate); struct clk *clk_divider(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width); +struct clk *clk_divider_table(const char *name, + const char *parent, void __iomem *reg, u8 shift, u8 width, + const struct clk_div_table *table); struct clk *clk_fixed_factor(const char *name, const char *parent, unsigned int mult, unsigned int div); struct clk *clk_mux(const char *name, void __iomem *reg, -- cgit v1.2.3