[U-Boot] [PATCH v3 1/2] fdt: Add fdtdec_find_aliases() to deal with alias nodes
Simon Glass
sjg at chromium.org
Mon Jan 23 15:08:10 EST 2012
Hi Jerry,
On Sun, Jan 22, 2012 at 6:04 PM, Jerry Van Baren <gvb.uboot at gmail.com> wrote:
> On 01/17/2012 01:20 PM, Simon Glass wrote:
>> 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
>
> Nitpick: aliases
Thanks for the review - will resend this patch to tidy that up.
>
>> 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 at chromium.org>
>
> Acked-by: Gerald Van Baren <vanbaren at cideas.com>
>
> Thanks,
> gvb
Regards,
Simon
More information about the devicetree-discuss
mailing list