diff options
author | Simon Glass <sjg@chromium.org> | 2012-01-17 08:20:50 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-03-29 08:12:47 +0200 |
commit | a53f4a29ac62a2e83d35a4a7b6d6969cf95a5902 (patch) | |
tree | 663074c62f5bf4b6268e25a5ff97e523000cd169 /spl | |
parent | d8bd820935bb9b8bf2717a259eeab4376e9ccc9a (diff) | |
download | u-boot-imx-a53f4a29ac62a2e83d35a4a7b6d6969cf95a5902.zip u-boot-imx-a53f4a29ac62a2e83d35a4a7b6d6969cf95a5902.tar.gz u-boot-imx-a53f4a29ac62a2e83d35a4a7b6d6969cf95a5902.tar.bz2 |
fdt: Add fdtdec_find_aliases() to deal with alias nodes
Stephen Warren pointed out that we should use nodes whether or not they
have an alias in the /aliases section. The aliases section specifies the
order so far as it can, but is not essential. Operating without alisses
is useful when the enumerated order of nodes does not matter (admittedly
rare in U-Boot).
This is considerably more complex, and it is important to keep this
complexity out of driver code. This patch creates a function
fdtdec_find_aliases() which returns an ordered list of node offsets
for a particular compatible ID, taking account of alias nodes.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'spl')
0 files changed, 0 insertions, 0 deletions