sandbox: clk: add clk enable/disable test code
authorPeng Fan <peng.fan@nxp.com>
Wed, 21 Aug 2019 13:35:19 +0000 (13:35 +0000)
committerLukasz Majewski <lukma@denx.de>
Wed, 21 Aug 2019 22:10:09 +0000 (00:10 +0200)
commitc66f4f5e3018e7df5249ae7e100ad85d9d2cb33f
tree7b7471bea3ac18089f6929be697fc6ea76ae270d
parentaeeb2e6d9c67273da5d91f7567657447878eb493
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>
drivers/clk/clk_sandbox_ccf.c
include/sandbox-clk.h
test/dm/clk_ccf.c