clk: sandbox: Add sandbox test code for Common Clock Framework [CCF]
This patch provides code to implement the CCF clock tree in sandbox. It
uses all the introduced primitives; some generic ones are reused, some
sandbox specific were developed.
In that way (after introducing the real CCF tree in sandbox) the recently
added to clk-uclass.c: clk_get_by_id() and clk_get_parent_rate() are tested
in their natural work environment.
Usage (sandbox_defconfig and sandbox_flattree_defconfig):
./u-boot --fdt arch/sandbox/dts/test.dtb --command "ut dm clk_ccf"
Signed-off-by:
Lukasz Majewski <lukma@denx.de>
Showing
- arch/sandbox/dts/test.dts 4 additions, 0 deletionsarch/sandbox/dts/test.dts
- drivers/clk/Kconfig 9 additions, 1 deletiondrivers/clk/Kconfig
- drivers/clk/Makefile 1 addition, 0 deletionsdrivers/clk/Makefile
- drivers/clk/clk_sandbox_ccf.c 185 additions, 0 deletionsdrivers/clk/clk_sandbox_ccf.c
- include/sandbox-clk.h 76 additions, 0 deletionsinclude/sandbox-clk.h
- test/dm/Makefile 1 addition, 1 deletiontest/dm/Makefile
- test/dm/clk_ccf.c 62 additions, 0 deletionstest/dm/clk_ccf.c
Loading
Please register or sign in to comment