Files
u-boot/drivers
Simon Glass ccdcd03a6e dm: core: Create ofnode stubs when OF_REAL is disabled
When there is no device tree there is not point in trying to find nodes,
etc. since they will all be null.

Add static inlines to skip the code in that case.

Unfortunately this makes the file a little convoluted and there are
two inlines for ofnode_is_enabled() and ofnode_first/next_subnode(). But
it seems better than the alternative.

We could also consider splitting up the header file.

Also add a rule in drivers/Makefile to compile ofnode.o when OF_REAL is
enabled but DM is not (for kontron-sl-mx6ul) and move the
ofnode_for_each_compatible_node/prop() macros outside the OF_REAL
condition, since they only use functions that have stubs.

Series-to: concept
Series-cc: heinrich

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
2025-11-28 11:07:17 -07:00
..
2025-05-26 16:20:28 +01:00
2025-08-11 15:01:27 -06:00
2025-06-28 07:53:25 -06:00
2025-09-24 18:29:39 -06:00
2025-06-28 07:53:25 -06:00
2025-07-05 05:48:28 -06:00
2025-09-24 18:29:39 -06:00