summaryrefslogtreecommitdiff
path: root/tools/dtoc/fdt.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-26 00:59:14 (GMT)
committerSimon Glass <sjg@chromium.org>2016-09-19 03:04:39 (GMT)
commit2a70d897ed68fd521411a10831ac05e1ffdd3d41 (patch)
treee3923ef5b91172f52da3627b6370e9fbee6b5bc2 /tools/dtoc/fdt.py
parent0170804f60b19a2033ac39964fcd192a0c7eda42 (diff)
downloadu-boot-fsl-qoriq-2a70d897ed68fd521411a10831ac05e1ffdd3d41.tar.xz
dtoc: Support deleting device tree properties
Add support for deleting a device tree property. With the fallback implementation this uses fdtput. With libfdt it uses the API call and updates the offsets afterwards. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/fdt.py')
-rw-r--r--tools/dtoc/fdt.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
index c0ce5af..f01c7b1 100644
--- a/tools/dtoc/fdt.py
+++ b/tools/dtoc/fdt.py
@@ -184,6 +184,16 @@ class NodeBase:
"""
raise NotImplementedError()
+ def DeleteProp(self, prop_name):
+ """Delete a property of a node
+
+ This should be implemented by subclasses
+
+ Args:
+ prop_name: Name of the property to delete
+ """
+ raise NotImplementedError()
+
class Fdt:
"""Provides simple access to a flat device tree blob.