diff options
author | Simon Glass <sjg@chromium.org> | 2021-02-03 06:01:21 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-22 19:23:27 +1300 |
commit | d392d32fd8d5fb28cd5c5888cd303e57a507dda9 (patch) | |
tree | cbca087cf4fd1c48d0f12b4a8ae524556bcff1d9 /drivers/misc/test_drv.c | |
parent | ea74c95103c66282b8c43e7893bdcd533cab220f (diff) |
dtoc: Generate device instances
Add support for generating a file containing udevice instances. This
avoids the need to create these at run time.
Update a test uclass to include a 'per_device_plat_auto' member, to
increase test coverage.
Add another tab to the driver_info output so it lines up nicely like the
device-instance output.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc/test_drv.c')
-rw-r--r-- | drivers/misc/test_drv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/test_drv.c b/drivers/misc/test_drv.c index f431a576f1..5d72982f25 100644 --- a/drivers/misc/test_drv.c +++ b/drivers/misc/test_drv.c @@ -98,6 +98,7 @@ U_BOOT_DRIVER(denx_u_boot_test_bus) = { .per_child_plat_auto = sizeof(struct dm_test_parent_plat), .child_pre_probe = testbus_child_pre_probe, .child_post_remove = testbus_child_post_remove, + DM_HEADER(<test.h>) }; UCLASS_DRIVER(testbus) = { @@ -106,6 +107,9 @@ UCLASS_DRIVER(testbus) = { .flags = DM_UC_FLAG_SEQ_ALIAS, .child_pre_probe = testbus_child_pre_probe_uclass, .child_post_probe = testbus_child_post_probe_uclass, + + /* This is for dtoc testing only */ + .per_device_plat_auto = sizeof(struct dm_test_uclass_priv), }; static int testfdt_drv_ping(struct udevice *dev, int pingval, int *pingret) |