summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-03-11 08:40:42 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-03-11 09:53:14 +0100
commit1ae7f310d101e2bbba8d0fc80b582aee5e39ab8f (patch)
tree11e540686ed9532d7e83bf06ff016b896062ad1d /include/linux
parent90f70a9825919037729c20ab3c5e8b30d08fe9de (diff)
downloadbarebox-1ae7f310d101e2bbba8d0fc80b582aee5e39ab8f.tar.gz
barebox-1ae7f310d101e2bbba8d0fc80b582aee5e39ab8f.tar.xz
clk: Support CLK_IS_CRITICAL flag
Support CLK_IS_CRITICAL flag. Simply do not disable the clock even when the enable count is zero. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/clk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 5b0a93095d..5ad12c571c 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -286,6 +286,7 @@ static inline void clk_put(struct clk *clk)
#define CLK_SET_RATE_PARENT (1 << 0) /* propagate rate change up one level */
#define CLK_IGNORE_UNUSED (1 << 3) /* do not gate even if unused */
+#define CLK_IS_CRITICAL (1 << 11) /* do not gate, ever */
/* parents need enable during gate/ungate, set rate and re-parent */
#define CLK_OPS_PARENT_ENABLE (1 << 12)