summaryrefslogtreecommitdiffstats
path: root/include/linux/clk.h
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2013-06-30 23:08:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-02 08:36:09 +0200
commit10a06ed554cc6599b862e49885d731a6cee69b8d (patch)
tree91a7e6226b74b34fa1ccf7bdf443e4e7c2827103 /include/linux/clk.h
parent98a2fe8f95847f84b37616762aa0bf43c0e1f015 (diff)
downloadbarebox-10a06ed554cc6599b862e49885d731a6cee69b8d.tar.gz
barebox-10a06ed554cc6599b862e49885d731a6cee69b8d.tar.xz
clk: allow to instanciate clk mux without registering it
Allows to reuse clk mux code within other clocks. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/clk.h')
-rw-r--r--include/linux/clk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h
index cc4f114b63..0a565efb08 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -212,6 +212,10 @@ struct clk *clk_divider_table(const char *name,
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_alloc(const char *name, void __iomem *reg,
+ u8 shift, u8 width, const char **parents, u8 num_parents);
+void clk_mux_free(struct clk *clk_mux);
struct clk *clk_mux(const char *name, void __iomem *reg,
u8 shift, u8 width, const char **parents, u8 num_parents);