[U-Boot] [PATCH V3 4/4] sandbox: clk: add clk enable/disable test code

Simon Glass sjg at chromium.org
Fri Aug 23 21:49:00 UTC 2019


On Wed, 21 Aug 2019 at 07:35, Peng Fan <peng.fan at nxp.com> wrote:
>
> 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 at nxp.com>
> ---
>
> V3:
>  Fix build for sandbox
> V2:
>  New Patch
>
>  drivers/clk/clk_sandbox_ccf.c | 15 +++++++++++++++
>  include/sandbox-clk.h         |  3 +++
>  test/dm/clk_ccf.c             | 28 ++++++++++++++++++++++++++++
>  3 files changed, 46 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list