]> git.sur5r.net Git - u-boot/blobdiff - tools/dtoc/fdt.py
dtoc: Support finding the offset of a property
[u-boot] / tools / dtoc / fdt.py
index 403eb1fe6d0507d0233d2563fe8089d760f34823..816fdbe5258523a0c9f8074bd463229a9f60d302 100644 (file)
@@ -144,6 +144,17 @@ class PropBase:
         else:
             return True
 
+    def GetOffset(self):
+        """Get the offset of a property
+
+        This can be implemented by subclasses.
+
+        Returns:
+            The offset of the property (struct fdt_property) within the
+            file, or None if not known.
+        """
+        return None
+
 class NodeBase:
     """A device tree node