diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-02-25 09:58:29 -0700 |
---|---|---|
committer | Jon Loeliger <jdl@jdl.com> | 2010-02-25 11:46:01 -0600 |
commit | 83da1b2a4ee272ac97647a82fc652d9b4b1505ee (patch) | |
tree | 37673dc8cf18212c20b497b4e030b0370d240ad5 /dtc.h | |
parent | 716418849a0ed4cc7689d4b82a73597a8726de92 (diff) | |
download | dtc-83da1b2a4ee272ac97647a82fc652d9b4b1505ee.tar.gz |
Allow device tree to be modified by additonal device tree sections
This patch allows the following construct:
/ {
property-a = "old";
property-b = "does not change";
};
/ {
property-a = "changed";
property-c = "new";
node-a {
};
};
Where the later device tree overrides the properties found in the
earlier tree. This is useful for laying down a template device tree
in an include file and modifying it for a specific board without having
to clone the entire tree.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'dtc.h')
-rw-r--r-- | dtc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -174,6 +174,7 @@ struct property *reverse_properties(struct property *first); struct node *build_node(struct property *proplist, struct node *children); struct node *name_node(struct node *node, char *name); struct node *chain_node(struct node *first, struct node *list); +struct node *merge_nodes(struct node *old_node, struct node *new_node); void add_property(struct node *node, struct property *prop); void add_child(struct node *parent, struct node *child); |