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.
Patch 1 and 4-7 are the interesting bits. Patch 2 and 3 provide the ability to use this code on x86, and are provided mostly for reference. The non-early boot code has been compile-tested and executed on X86. Stephen Neuendorffer (7): fdt: Add Kconfig for EARLY_FLATTREE arch/x86: Add support for device tree code. arch/x86: select OF and OF_FLATTREE fdt.c: Add non-boottime device tree functions fdt.c: Refactor unflatten_dt_node fdt.c: Reorder unflatten_dt_node fdt.c: Refactor unflatten_device_tree and add fdt_unflatten_tree arch/microblaze/Kconfig | 1 + arch/powerpc/Kconfig | 1 + arch/x86/Kconfig | 2 + arch/x86/include/asm/irq.h | 2 + arch/x86/kernel/irq.c | 11 ++ drivers/of/Kconfig | 5 + drivers/of/fdt.c | 393 ++++++++++++++++++++++++++------------------ include/linux/of_fdt.h | 13 ++ 8 files changed, 272 insertions(+), 156 deletions(-) This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev