diff options
author | Tomasz Figa <tomasz.figa@gmail.com> | 2013-07-23 01:49:18 +0200 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 08:57:43 -0500 |
commit | cd7d942702f18844e0872bf446b2417c2c776b2a (patch) | |
tree | fd90b1dbc7a6c7ba54cfeec17c47e0d2cd6947e0 /include | |
parent | 61c4dd0c2f4e5ae1c1dabd4f911b3263298ca3a1 (diff) |
clk: mux: Add support for read-only muxes.
Some platforms have read-only clock muxes that are preconfigured at
reset and cannot be changed at runtime. This patch extends mux clock
driver to allow handling such read-only muxes by adding new
CLK_MUX_READ_ONLY mux flag.
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clk-provider.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index b8fa6fb9018d..4e9f36a15033 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -330,8 +330,10 @@ struct clk_mux { #define CLK_MUX_INDEX_ONE BIT(0) #define CLK_MUX_INDEX_BIT BIT(1) #define CLK_MUX_HIWORD_MASK BIT(2) +#define CLK_MUX_READ_ONLY BIT(3) /* mux setting cannot be changed */ extern const struct clk_ops clk_mux_ops; +extern const struct clk_ops clk_mux_ro_ops; struct clk *clk_register_mux(struct device *dev, const char *name, const char **parent_names, u8 num_parents, unsigned long flags, |