[U-Boot] [PATCH v3 0/2] fdt: Deal correctly with alias nodes
Simon Glass
sjg at chromium.org
Tue Jan 17 19:20:49 CET 2012
This series proposes a new way to deal with alias nodes and introduces a
function to take care of it.
Drivers can now request an ordered list of compatible nodes in a single
step. This simplifies node discovery for drivers (and keeps this nasty
code in a common place).
If DEBUG is defined the alias function will print messages in the event
of a warning/error.
Changes in v2:
- Add test_fdtdec command to test fdtdec_find_aliases_for_id()
- Allow gaps in the list returned to the caller
- Improve alias checking algorithm to reduce run time
- Rename function to fdtdec_find_aliases_for_id()
- Skip nodes marked as disabled
Changes in v3:
- Change 'continue' to 'break' in last loop, since we are done anyway
- Change fdtdec-test.c to fdtdec_test.c to fit better with U-Boot conventions
- Fix typos and add two assert() checks
- Remove varargs declaration (hang-over from previous implementation)
- Use COMPAT_UNKNOWN instead of COMPAT_NVIDIA_TEGRA20_I2C for test
Simon Glass (2):
fdt: Add fdtdec_find_aliases() to deal with alias nodes
fdt: Add tests for fdtdec
include/fdtdec.h | 47 +++++++++++
lib/Makefile | 1 +
lib/fdtdec.c | 116 +++++++++++++++++++++++++++
lib/fdtdec_test.c | 226 +++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 390 insertions(+), 0 deletions(-)
create mode 100644 lib/fdtdec_test.c
--
1.7.7.3
More information about the U-Boot
mailing list