[U-Boot] [PATCH v4 11/13] clk: test: Provide unit test for clk_get_parent_rate() method
Simon Glass
sjg at chromium.org
Sat May 18 16:33:14 UTC 2019
Hi Lukasz,
On Thu, 16 May 2019 at 16:11, Lukasz Majewski <lukma at 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 <lukma at 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
More information about the U-Boot
mailing list