clk: sandbox: Add sandbox test code for Common Clock Framework [CCF]
authorLukasz Majewski <lukma@denx.de>
Mon, 24 Jun 2019 13:50:50 +0000 (15:50 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 12:50:30 +0000 (14:50 +0200)
commit87e460c304ad6030bc2aab89edd44e433290d5bc
tree26f581f81b66987392ac55ec6d3b06c72b656994
parent5da0095e3a670fe61a3421a2a826514a61a687e0
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>
arch/sandbox/dts/test.dts
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/clk_sandbox_ccf.c [new file with mode: 0644]
include/sandbox-clk.h [new file with mode: 0644]
test/dm/Makefile
test/dm/clk_ccf.c [new file with mode: 0644]