On 10/21/2011 08:16 AM, Pawel Moll wrote:
This patch adds a function for finding a node in flat tree
based on an alias name. It can be used in early boot code.

Typical use case is a situation when early code needs data
from a arbitrary tree node, eg. base address of "serial0" to
initialise debug output or some sort of ID register to
probe hardware.

The tree source could look like that:

/ {
        aliases {
                serial0 =&uart0;
        };

        uart0: uart@f0001000 {
                reg =<0xf0001000 0x1000>;
        };
}

Signed-off-by: Pawel Moll<pawel.m...@arm.com>

How is this patch different/better than:


http://lists.ozlabs.org/pipermail/devicetree-discuss/2011-June/005819.html

David Daney
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to