Hi Lukasz, On Thu, 16 May 2019 at 16:11, Lukasz Majewski <lu...@denx.de> wrote: > > This commit provides sandbox unit test for clk_get_parent_rate() method. > > For testing the default test clocks setup had to be adjusted to emulate > structure similar to clocks in the Common Clock Framework [CCF] > (for iMX devices). > > The clk_get_parent_rate() relies on dev->driver_data having the pointer > to proper struct clk.
Yes, really want to avoid this. > It uses internally clk_get_parent() method also tested by this test. > > Signed-off-by: Lukasz Majewski <lu...@denx.de> > > --- > > Changes in v4: None > Changes in v3: > - New patch > > arch/sandbox/include/asm/clk.h | 8 ++++++++ > drivers/clk/clk_sandbox_test.c | 26 ++++++++++++++++++++++++++ > test/dm/clk.c | 1 + > 3 files changed, 35 insertions(+) Regards, Simon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot