[PATCH v2 16/33] dtoc: Support headers needed for drivers
Simon Glass
sjg at chromium.org
Sun Feb 7 01:17:12 CET 2021
Typically dtoc can detect the header file needed for a driver by looking
for the structs that it uses. For example, if a driver as a .priv_auto
that uses 'struct serial_priv', then dtoc can search header files for the
definition of that struct and use the file.
In some cases, enums are used in drivers, typically with the .data field
of struct udevice_id. Since dtoc does not support searching for these,
add a way to tell dtoc which header to use. This works as a macro included
in the driver definition.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
include/dm/device.h | 18 ++++++++++++++++++
tools/dtoc/src_scan.py | 7 +++++++
tools/dtoc/test_src_scan.py | 4 ++++
3 files changed, 29 insertions(+)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list