projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f611dc
)
test: dm: clk_ccf: test composite clk
author
Peng Fan
<peng.fan@nxp.com>
Wed, 31 Jul 2019 07:02:05 +0000
(07:02 +0000)
committer
Lukasz Majewski
<lukma@denx.de>
Wed, 31 Jul 2019 07:20:51 +0000
(09:20 +0200)
Test composite clk with dm ccf
Signed-off-by: Peng Fan <peng.fan@nxp.com>
test/dm/clk_ccf.c
patch
|
blob
|
history
diff --git
a/test/dm/clk_ccf.c
b/test/dm/clk_ccf.c
index
8d39759
..
bbc4b50
100644
(file)
--- a/
test/dm/clk_ccf.c
+++ b/
test/dm/clk_ccf.c
@@
-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;
}