aboutsummaryrefslogtreecommitdiff
path: root/include/sandbox-clk.h
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2019-08-21 13:35:19 +0000
committerLukasz Majewski <lukma@denx.de>2019-08-22 00:10:09 +0200
commitc66f4f5e3018e7df5249ae7e100ad85d9d2cb33f (patch)
tree7b7471bea3ac18089f6929be697fc6ea76ae270d /include/sandbox-clk.h
parentaeeb2e6d9c67273da5d91f7567657447878eb493 (diff)
downloadu-boot-c66f4f5e3018e7df5249ae7e100ad85d9d2cb33f.zip
u-boot-c66f4f5e3018e7df5249ae7e100ad85d9d2cb33f.tar.gz
u-boot-c66f4f5e3018e7df5249ae7e100ad85d9d2cb33f.tar.bz2
sandbox: clk: add clk enable/disable test code
Since we added clk enable_count and prograte clk child enabling operation to clk parent, so add a new function sandbox_clk_enable_count to get enable_count for test usage. And add test code to get the enable_count after we enable/disable the device clk. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/sandbox-clk.h')
-rw-r--r--include/sandbox-clk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sandbox-clk.h b/include/sandbox-clk.h
index f449de1..296cddf 100644
--- a/include/sandbox-clk.h
+++ b/include/sandbox-clk.h
@@ -20,6 +20,7 @@ enum {
SANDBOX_CLK_USDHC1_SEL,
SANDBOX_CLK_USDHC2_SEL,
SANDBOX_CLK_I2C,
+ SANDBOX_CLK_I2C_ROOT,
};
enum sandbox_pllv3_type {
@@ -74,4 +75,6 @@ static inline struct clk *sandbox_clk_mux(const char *name, void __iomem *reg,
width, 0);
}
+int sandbox_clk_enable_count(struct clk *clk);
+
#endif /* __SANDBOX_CLK_H__ */