summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2019-07-31 07:01:57 +0000
committerLukasz Majewski <lukma@denx.de>2019-07-31 09:20:51 +0200
commit2b12957d01763bf2a52a4727327a7b3b80bc9111 (patch)
tree1253706abe7fe0721b782f1afce1e991d2756ddf /include/linux
parent00097635888f9104da7f7cceaf1858ec8987e86f (diff)
clk: gate: support sandbox
Introduce io_gate_val for sandbox clk gate test usage Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/clk-provider.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index b9547736ee..02ff1a311a 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -75,6 +75,9 @@ struct clk_gate {
void __iomem *reg;
u8 bit_idx;
u8 flags;
+#if CONFIG_IS_ENABLED(SANDBOX_CLK_CCF)
+ u32 io_gate_val;
+#endif
};
#define to_clk_gate(_clk) container_of(_clk, struct clk_gate, clk)