[U-Boot] [PATCH v2 0/2] fdt: Deal correctly with alias nodes

Simon Glass sjg at chromium.org
Thu Jan 12 00:08:02 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:
- Rename function to fdtdec_find_aliases_for_id()
- Improve alias checking algorithm to reduce run time
- Skip nodes marked as disabled
- Allow gaps in the list returned to the caller
- Add test_fdtdec command to test fdtdec_find_aliases_for_id()

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-test.c |  228 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/fdtdec.c      |  114 ++++++++++++++++++++++++++
 4 files changed, 390 insertions(+), 0 deletions(-)
 create mode 100644 lib/fdtdec-test.c

-- 
1.7.3.1



More information about the U-Boot mailing list