mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 23:23:30 +08:00
test: dm: clk_ccf: test composite clk
Test composite clk with dm ccf Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
8f611dc71c
commit
4f895988ad
@ -56,6 +56,14 @@ static int dm_test_clk_ccf(struct unit_test_state *uts)
|
||||
pclk = clk_get_parent(clk);
|
||||
ut_asserteq_str("pll3_80m", pclk->dev->name);
|
||||
|
||||
/* Test the composite of CCF */
|
||||
ret = clk_get_by_id(SANDBOX_CLK_I2C, &clk);
|
||||
ut_assertok(ret);
|
||||
ut_asserteq_str("i2c", clk->dev->name);
|
||||
|
||||
rate = clk_get_rate(clk);
|
||||
ut_asserteq(rate, 60000000);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user