diff options
author | Simon Glass | 2021-02-03 06:01:04 -0700 |
---|---|---|
committer | Simon Glass | 2021-03-22 19:23:27 +1300 |
commit | 735ddfc638bf3ffdf6888f5502bddbbfa6b3636e (patch) | |
tree | 67311f136093e5b3a1d1295ab6847f280538a037 /lib/ldiv.c | |
parent | 67c053341ff65e1fa6386f633492c7fc9d03fe18 (diff) |
dtoc: Support headers needed for drivers
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@chromium.org>
Diffstat (limited to 'lib/ldiv.c')
0 files changed, 0 insertions, 0 deletions