diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-12-07 16:42:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-12-07 16:42:04 +0100 |
commit | 4bdb250c9f40abcadd63a1eb86c9364c4ca9c0d7 (patch) | |
tree | 92d635107cfddd677b8ef8a3df8df1e7b332d3b0 /include | |
parent | 6bf55c7c637c4343094d2fe748173a44da4a6679 (diff) | |
parent | 6bbb1b51bf6fcc7ecc4ff3cb7c3cf472943faeac (diff) | |
download | barebox-4bdb250c9f40abcadd63a1eb86c9364c4ca9c0d7.tar.gz barebox-4bdb250c9f40abcadd63a1eb86c9364c4ca9c0d7.tar.xz |
Merge branch 'for-next/clk'
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clk.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index 00588bff05..4389cf8b93 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -179,11 +179,22 @@ struct clk { int num_parents; struct clk **parents; + unsigned long flags; +}; + +#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, |