summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-21 13:57:09 -0700
committerSimon Glass <sjg@chromium.org>2021-01-30 14:25:41 -0700
commitd85f2c4f2970d0ec2f5f075de734afd11200d153 (patch)
treea5744e9350348842699d6866c0f69f6ff1703374 /test
parentdfb5bfbc208699ae1b5fc8e17f65d862be3b4612 (diff)
downloadu-boot-d85f2c4f2970d0ec2f5f075de734afd11200d153.tar.gz
u-boot-d85f2c4f2970d0ec2f5f075de734afd11200d153.tar.xz
u-boot-d85f2c4f2970d0ec2f5f075de734afd11200d153.zip
sandbox: Disable I2C emulators in SPL
These cannot work with of-platdata since they currently need the devicetree at runtime. Disable the emulators and the sandbox I2C driver that needs them. We can enable these later, if needed for testing. Switch the of_plat_parent test over to use a simple bus instead. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'test')
-rw-r--r--test/dm/of_platdata.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dm/of_platdata.c b/test/dm/of_platdata.c
index cfc43a5b03..26c50922c5 100644
--- a/test/dm/of_platdata.c
+++ b/test/dm/of_platdata.c
@@ -210,11 +210,11 @@ DM_TEST(dm_test_of_plat_phandle, UT_TESTF_SCAN_PDATA);
/* Test that device parents are correctly set up */
static int dm_test_of_plat_parent(struct unit_test_state *uts)
{
- struct udevice *rtc, *i2c;
+ struct udevice *dev, *bus;
- ut_assertok(uclass_first_device_err(UCLASS_RTC, &rtc));
- ut_assertok(uclass_first_device_err(UCLASS_I2C, &i2c));
- ut_asserteq_ptr(i2c, dev_get_parent(rtc));
+ ut_assertok(uclass_first_device_err(UCLASS_SIMPLE_BUS, &bus));
+ ut_assertok(device_first_child_err(bus, &dev));
+ ut_asserteq_ptr(bus, dev_get_parent(dev));
return 0;
}