[PATCH 19/20] dm: Don't allow U_BOOT_DEVICE() when of-platdata is used
Simon Glass
sjg at chromium.org
Fri Oct 30 04:34:27 CET 2020
With of-platdata, the devicetree is supposed to specify all the devices
in the system. So far this hasn't really mattered since of-platdata still
works correctly.
However, new of-platdata features rely on numbering the devices in a
particular order so that they can be referenced by a single integer. It is
tricky to implement this efficiently when other devices are present in the
build.
To address this, disable use of U_BOOT_DEVICE() when of-platdata is
enabled. This seems acceptable as it is not supposed to be used at all,
except in SPL/TPL, where of-platdata is the recommended approach.
This breaks one non-compliant boards at present: mx6cuboxi
Signed-off-by: Simon Glass <sjg at chromium.org>
---
include/dm/platdata.h | 8 ++++++++
tools/dtoc/dtb_platdata.py | 3 +++
tools/dtoc/test_dtoc.py | 3 +++
3 files changed, 14 insertions(+)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list