aboutsummaryrefslogtreecommitdiff
path: root/tools/dtoc/fdt.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-07-06 10:27:20 -0600
committerSimon Glass <sjg@chromium.org>2018-07-09 09:11:00 -0600
commit3def0cf238e0df9736a4ce8fb54c1eb561a56ddd (patch)
tree6c09c604e0e82f51a05b111087c6bd7d4bda49de /tools/dtoc/fdt.py
parent5c890238c480a96d4d0b06c92199e21867170c31 (diff)
downloadu-boot-3def0cf238e0df9736a4ce8fb54c1eb561a56ddd.zip
u-boot-3def0cf238e0df9736a4ce8fb54c1eb561a56ddd.tar.gz
u-boot-3def0cf238e0df9736a4ce8fb54c1eb561a56ddd.tar.bz2
libfdt: Bring in proposed pylibfdt changes
This provides various patches sent to the devicetree-compiler mailing list to enhance the Python bindings. A final version of this patch may be created once upstreaming is complete, but if it takes too long, this can act as a placeholder. New pylibfdt features: - Support for most remaining, relevant libfdt functions - Support for sequential-write functions Changes are applied to existing U-Boot tools as needed. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/fdt.py')
-rw-r--r--tools/dtoc/fdt.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
index 7fab0cd..d08b0b5 100644
--- a/tools/dtoc/fdt.py
+++ b/tools/dtoc/fdt.py
@@ -234,7 +234,6 @@ class Node:
be updated.
"""
if self._offset != my_offset:
- #print '%s: %d -> %d\n' % (self.path, self._offset, my_offset)
self._offset = my_offset
offset = libfdt.fdt_first_subnode(self._fdt.GetFdt(), self._offset)
for subnode in self.subnodes:
@@ -359,7 +358,7 @@ class Fdt:
poffset = libfdt.fdt_first_property_offset(self._fdt, node._offset)
while poffset >= 0:
p = self._fdt_obj.get_property_by_offset(poffset)
- prop = Prop(node, poffset, p.name, p.value)
+ prop = Prop(node, poffset, p.name, p)
props_dict[prop.name] = prop
poffset = libfdt.fdt_next_property_offset(self._fdt, poffset)