PPC: e500: require libfdt
Now that we're moving all of the device tree generation from an externalpre-execution generated blob to runtime generation using libfdt, we absolutelymust have libfdt around.
This requirement was there before already, as the only way to not require libfdt...
PPC: e500: dt: create memory node dynamically
Signed-off-by: Alexander Graf <agraf@suse.de>
dt: add helpers for multi-cell adds
We have device tree helpers that allow us to create single cell (u32)wide properties. However, when creating properties that contain an array ofcells, we need to jump through hoops, manually passing in an array withconverted endianness....
dt: add helper for phandle references
Phandles are the fancy device tree name for "pointer to another node".To create a phandle property, we most likely want to reference to thenode we're pointing to by its path. So create a helper that allowsus to do so....
dt: temporarily disable subtree creation failure check
Usually we want to know when creating a subtree fails. However, whileintroducing this patch set we have to modify the device tree and sometimes have the code to create a subtree in both the binary tree and...
dt: add helper for phandle enumeration
This patch adds a helper to search for a node's phandle by its path. Thisis especially useful when the phandle is part of an array, not just a singlecell in which case qemu_devtree_setprop_phandle would be the easy choice....
dt: add helper for empty dt creation
We want to get rid of the concept of loading an external device tree and insteadgenerate our own. However, to do this we need to also create a device treetemplate programatically.
This patch adds a helper to create an empty device tree in memory....
dt: add helper for phandle allocation
Phandle references work by having 2 pieces:
- a "phandle" 1-cell property in the device tree node - a reference to the same value in a property we want to point to the other node
To generate the 1-cell property, we need an allocation mechanism that...
dt: add helper for 64bit cell adds
Some times in the device tree, we find an array of 2 u32 cells thatreally are a single u64 value. This patch adds a helper to make thecreation of these easy.
Signed-off-by: Alexander Graf <agraf@suse.de>Reviewed-by: Peter Crosthwaite <peter.crosthwaite@petalogix.com>
dt: allow add_subnode to create root subnodes
Our subnode creation helper can't handle creation of root subnodes,like "/memory". Fix this by allowing the parent node to be an emptystring, indicating the root node.
Signed-off-by: Alexander Graf <agraf@suse.de>...
View all revisions | View revisions
Also available in: Atom