diff options
author | Tom Rini <trini@konsulko.com> | 2019-08-02 13:29:46 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-08-02 13:29:46 -0400 |
commit | 898c40c0d6f9e53dafcfdf6f870190faef6e088b (patch) | |
tree | 91f677f5973789885f16869c1c82d45fa987bd35 /test | |
parent | 7298d82d91940e7b4fb464a9d52c7051ddde2298 (diff) | |
parent | 4f895988adc021d96c02cbcbb7b899c57ecbae4a (diff) | |
download | u-boot-898c40c0d6f9e53dafcfdf6f870190faef6e088b.tar.gz |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-clkWIP/02Aug2019
- Port more CCF code to work with i.MX8 devices.
Diffstat (limited to 'test')
-rw-r--r-- | test/dm/clk_ccf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/dm/clk_ccf.c b/test/dm/clk_ccf.c index 8d397593a3..bbc4b500e8 100644 --- 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; } |