[PATCH v2 33/33] dtoc: Generate device instances

Simon Glass sjg at chromium.org
Sun Feb 7 01:16:50 CET 2021


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 at chromium.org>
---

Changes in v2:
- Drop patches previously applied
- Update cover letter
- Fix the naming for uclass_plat_name so it is different from uclass_priv
- Tidy up tabbing to make the code output line up better
- Add a summary to the top of the generated file

 drivers/misc/test_drv.c    |   4 +
 tools/dtoc/dtb_platdata.py | 168 ++++++++++++++++++-
 tools/dtoc/test_dtoc.py    | 327 +++++++++++++++++++++++++++++++++++--
 3 files changed, 484 insertions(+), 15 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list