clk: introduce enable_count
authorPeng Fan <peng.fan@nxp.com>
Wed, 21 Aug 2019 13:35:03 +0000 (13:35 +0000)
committerLukasz Majewski <lukma@denx.de>
Wed, 21 Aug 2019 22:10:09 +0000 (00:10 +0200)
commite6849e2fd88f16d9592059422173f7f6ab790e07
tree85eb51885ac8cbbacef4304abd27375b210f8b12
parent753e5385ca6d0fe5b5f5a3a97cc96b0f2469ca94
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>
drivers/clk/clk.c
drivers/clk/clk_fixed_rate.c
include/clk.h