[PATCH v4 04/42] dm: core: Add macros to access the new linker lists

Simon Glass sjg at chromium.org
Wed Mar 17 02:28:58 CET 2021


Add macros which work with instantiated devices and uclasses, as created
at build time by dtoc. Include variants that can be used in data
structures.

These are mostly used by dtoc but it is worth documenting them fully for
the occasional case where they might come up in user code.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v3)

Changes in v3:
- Drop the decl() versions of the macros
- Add full documentation for the macros

 include/dm/device-internal.h | 75 ++++++++++++++++++++++++++++++++++++
 include/dm/device.h          | 22 +++++++++++
 include/dm/uclass-internal.h | 49 +++++++++++++++++++++++
 include/dm/uclass.h          | 31 +++++++++++++++
 include/linker_lists.h       |  4 +-
 5 files changed, 179 insertions(+), 2 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list