summaryrefslogtreecommitdiff
path: root/test/dm
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-02-27 13:32:09 -0500
committerTom Rini <trini@konsulko.com>2019-02-27 13:32:09 -0500
commit783e66816d101f970b185083377846059d4d577d (patch)
tree31ca1a69df593a7b4ae14dad2def1a48fcc9d91b /test/dm
parentb3820ba997f004a376efc5446683101ff42b05af (diff)
parent98a66ffa3aafd20d38f357d624e470e20fbb1839 (diff)
Merge git://git.denx.de/u-boot-riscv
- SiFive FU540 Support
Diffstat (limited to 'test/dm')
-rw-r--r--test/dm/clk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/dm/clk.c b/test/dm/clk.c
index 898c034e27..112d5cbbc9 100644
--- a/test/dm/clk.c
+++ b/test/dm/clk.c
@@ -12,12 +12,15 @@
static int dm_test_clk(struct unit_test_state *uts)
{
- struct udevice *dev_fixed, *dev_clk, *dev_test;
+ struct udevice *dev_fixed, *dev_fixed_factor, *dev_clk, *dev_test;
ulong rate;
ut_assertok(uclass_get_device_by_name(UCLASS_CLK, "clk-fixed",
&dev_fixed));
+ ut_assertok(uclass_get_device_by_name(UCLASS_CLK, "clk-fixed-factor",
+ &dev_fixed_factor));
+
ut_assertok(uclass_get_device_by_name(UCLASS_CLK, "clk-sbox",
&dev_clk));
ut_asserteq(0, sandbox_clk_query_enable(dev_clk, SANDBOX_CLK_ID_SPI));