summaryrefslogtreecommitdiff
path: root/include/clk.h
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2019-08-21 13:35:03 +0000
committerLukasz Majewski <lukma@denx.de>2019-08-22 00:10:09 +0200
commite6849e2fd88f16d9592059422173f7f6ab790e07 (patch)
tree85eb51885ac8cbbacef4304abd27375b210f8b12 /include/clk.h
parent753e5385ca6d0fe5b5f5a3a97cc96b0f2469ca94 (diff)
downloadu-boot-e6849e2fd88f16d9592059422173f7f6ab790e07.tar.gz
u-boot-e6849e2fd88f16d9592059422173f7f6ab790e07.tar.bz2
u-boot-e6849e2fd88f16d9592059422173f7f6ab790e07.zip
clk: introduce enable_count
As what Linux Kernel 5.3.0 provides when enable/disable clk, there is an enable_count in clk_core_disable/enable. Introduce enable_count to track the clk enable/disable count when clk_enable/disable for CCF. And Initialize enable_count to 0 when register the clk. And clk tree dump with enable_count will be supported, it will be easy for us to check the clk status with enable_count Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/clk.h')
-rw-r--r--include/clk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clk.h b/include/clk.h
index 3ca2796b57..18b2e3ca54 100644
--- a/include/clk.h
+++ b/include/clk.h
@@ -61,6 +61,7 @@ struct clk {
struct udevice *dev;
long long rate; /* in HZ */
u32 flags;
+ int enable_count;
/*
* Written by of_xlate. In the future, we might add more fields here.
*/