From d392d32fd8d5fb28cd5c5888cd303e57a507dda9 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 3 Feb 2021 06:01:21 -0700 Subject: 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 --- drivers/misc/test_drv.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/misc/test_drv.c') diff --git a/drivers/misc/test_drv.c b/drivers/misc/test_drv.c index f431a576f19..5d72982f258 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() }; 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) -- cgit v1.2.3