[PATCH 0/3] Add fdt_unflatten_tree
Kumar Gala
galak at kernel.crashing.org
Thu Nov 18 07:08:51 EST 2010
On Nov 17, 2010, at 1:15 PM, Stephen Neuendorffer wrote:
> Currently, fdt blobs are handled solely at boot time. However,
> it may be useful to parse blobs into device trees after boot time. For
> instance, a PCIe device may have an FPGA which includes a device
> tree. This set of patches locally refactors the existing code to enable
> this. The code has been compile-tested on X86 but has not been run in this
> version. However, the patch is rather straightforward.
>
> Stephen Neuendorffer (3):
> fdt.c: Add non-boottime device tree functions
> fdt.c: Refactor unflatten_dt_node
> fdt.c: Refactor unflatten_device_tree and add fdt_unflatten_tree
>
> drivers/of/fdt.c | 393 +++++++++++++++++++++++++++++-------------------
> include/linux/of_fdt.h | 11 ++
> 2 files changed, 251 insertions(+), 153 deletions(-)
It would be really nice if we could factor some of the live tree code into a library. I have some need for this in another context.
Not sure if we could actually build libfdt and link it into the kernel directly rather than what we do today.
- k
More information about the devicetree-discuss
mailing list