diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-16 10:19:05 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-20 08:49:55 +0200 |
commit | 680df771745ee89c0299af704f46689e21253b70 (patch) | |
tree | 4ccf686cbeace2f2f0399083c1c987c745f5e7b7 /include/linux/clk.h | |
parent | 707fb7ada577b4cb6988b9dc820a357959c626a3 (diff) | |
download | barebox-680df771745ee89c0299af704f46689e21253b70.tar.gz barebox-680df771745ee89c0299af704f46689e21253b70.tar.xz |
clk: add prototype for clk_is_enabled
On MXS we need to poll the busy bit when changing a clock rate, but only
when the parent clocks are enabled. This exposes the already present
function clk_is_enabled which is suitable for this job.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/clk.h')
-rw-r--r-- | include/linux/clk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index 718faa0fb9..38832ba942 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -216,6 +216,7 @@ struct clk *clk_gate(const char *name, const char *parent, void __iomem *reg, u8 shift); struct clk *clk_gate_inverted(const char *name, const char *parent, void __iomem *reg, u8 shift); +int clk_is_enabled(struct clk *clk); int clk_is_enabled_always(struct clk *clk); |