summaryrefslogtreecommitdiffstats
path: root/include/linux/clk.h
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2012-12-03 00:42:24 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2012-12-03 10:48:07 +0100
commitac5c16887008fc69b3bfee810f97c429df532021 (patch)
tree4cbded48c35dc598d4937529243e28c9b1b4d062 /include/linux/clk.h
parent3e689025a5a0e9e9cab038ab2a537a425ca4d5d2 (diff)
downloadbarebox-ac5c16887008fc69b3bfee810f97c429df532021.tar.gz
barebox-ac5c16887008fc69b3bfee810f97c429df532021.tar.xz
clk: add always enabled clocks
Current barebox clk framework allow disable any clock and there is no means to prevent that. But there are the clocks that can't be disabled by software at all. This patch allow registration of a clock immune to clk_disable(). Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/clk.h')
-rw-r--r--include/linux/clk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 00588bff05..1030b50c63 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -179,8 +179,11 @@ struct clk {
int num_parents;
struct clk **parents;
+ unsigned long flags;
};
+#define CLK_ALWAYS_ENABLED (1 << 0)
+
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);