summaryrefslogtreecommitdiff
path: root/tools/dtoc/fdt_normal.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-25 18:59:07 -0600
committerSimon Glass <sjg@chromium.org>2016-09-18 21:04:38 -0600
commitf7a2aeeeb8d4bbbb9bfd788903942062c8535efb (patch)
tree6b3a40e80838d7c733894379baf4df4eb81da90e /tools/dtoc/fdt_normal.py
parentc322a850affaf18f3833b3316292c91007c4b5d8 (diff)
downloadu-boot-imx-f7a2aeeeb8d4bbbb9bfd788903942062c8535efb.zip
u-boot-imx-f7a2aeeeb8d4bbbb9bfd788903942062c8535efb.tar.gz
u-boot-imx-f7a2aeeeb8d4bbbb9bfd788903942062c8535efb.tar.bz2
dtoc: Move a few more common functions into fdt.py
Some functions have the same code in the subclasses. Move these into the superclass to avoid duplication. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/fdt_normal.py')
-rw-r--r--tools/dtoc/fdt_normal.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/dtoc/fdt_normal.py b/tools/dtoc/fdt_normal.py
index 6f019c1..861f60c 100644
--- a/tools/dtoc/fdt_normal.py
+++ b/tools/dtoc/fdt_normal.py
@@ -94,22 +94,6 @@ class FdtNormal(Fdt):
"""
return self._fdt
- def Scan(self):
- """Scan a device tree, building up a tree of Node objects
-
- This fills in the self._root property
- """
- self._root = Node(self, 0, '/', '/')
- self._root.Scan()
-
- def GetRoot(self):
- """Get the root Node of the device tree
-
- Returns:
- The root Node object
- """
- return self._root
-
def GetProps(self, node):
"""Get all properties from a node.