summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDong Aisheng <b29396@freescale.com>2015-03-31 21:20:26 +0800
committerJason Liu <r64343@freescale.com>2015-05-08 16:34:02 +0800
commitba5aa5dbc8e8775662499f69531c7a5fab0b5798 (patch)
tree32f646fd3a565b762535d407763d2f5d4e551b2c /include
parent17a41ac689d9020669631f8df6a404e74deb8126 (diff)
MLK-10571-1 clk: core: add CLK_SET_PARENT_ON flags to support clocks require parent on
On Freescale i.MX7D platform, all clocks operations, including enable/disable, rate change and re-parent, requires its parent clock on. Current clock core can not support it well. This patch introduce a new flag CLK_SET_PARENT_ON to handle this special case in clock core that enable its parent clock firstly for each operation and disable it later after operation complete. The most special case is for set_parent() operation which requires both parent, old one and new one, to be enabled at the same time during the operation. Acked-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@freescale.com> Signed-off-by: Dong Aisheng <b29396@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/clk-provider.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index ae95cc590a89..b2a3323ce11b 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -36,6 +36,11 @@
* clocks through this child mux.
*/
#define CLK_IS_BASIC_MUX BIT(9)
+/*
+ * parent clock must be on across any operation including
+ * clock gate/ungate, rate change and re-parent
+ */
+#define CLK_SET_PARENT_ON BIT(10)
struct clk_hw;