Re: [PATCH] of/flattree: Early "find node by alias" function
From: Pawel Moll <hidden>
Date: 2011-11-08 11:57:54
From: Pawel Moll <hidden>
Date: 2011-11-08 11:57:54
Hello again, On Fri, 2011-10-21 at 16:16 +0100, 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 <redacted>Any further comments? Makes sense? Not at all? ;-) Cheers! Pawel