- Sep 15, 2017
-
-
Simon Glass authored
Add a map from phandles to nodes. This can be used by clients of the the class instead of maintaining this themselves. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Kever Yang <kever.yang@rock-chips.com>
-
Simon Glass authored
When dealing with multi-cell values we need a type that can hold this value. Add this and a function to process it from a list of cell values. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by:
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by:
Kever Yang <kever.yang@rock-chips.com>
-
Simon Glass authored
We need to be able to search back up the tree for #address-cells and #size-cells. Record the parent of each node to make this easier. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by:
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by:
Kever Yang <kever.yang@rock-chips.com>
-
- Jun 02, 2017
-
-
Simon Glass authored
This file was used to select between the normal and fallback libfdt implementations. Now that we only have one, it is not needed. Drop it and fix up all users. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Since we only have one Fdt implementation now we don't need to have a base class. Merge the implementation and the base class together. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Drop this now-unused library and associated tests. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Use the new library if available, while retaining backwards compatibility with the old library for now. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Sep 19, 2016
-
-
Simon Glass authored
Add a way to find the byte offset of a property within the device tree. This is only supported with the normal libfdt implementation since fdtget does not provide this information. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
After any node/property deletion the device tree can be packed to remove spare space. Add a way to perform this operation. Note that for fdt_fallback, fdtput automatically packs the device tree after deletion, so no action is required here. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
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>
-
Simon Glass authored
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>
-
Simon Glass authored
These functions are identical in both subclasses. Move them into the base class. Note: In fact there is a bug in one version, which was fixed by this patch: https://patchwork.ozlabs.org/patch/651697/ Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These functions are currently in a separate fdt_util file. Since they are only used from PropBase and subclasses, it makes sense for them to be in the PropBase class. Move these functions into fdt.py along with the list of types. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present we have two separate implementations of the Fdt library, one which uses fdtget/fdtput and one which uses libfdt (via swig). Before adding more functionality it makes sense to create a base class for these. This will allow common functions to be shared, and make the Fdt API a little clearer. Create a new fdt.py file with the base class, and adjust fdt_normal.py and fdt_fallback.py to use it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
In preparation for creating an Fdt base class, rename this file to indicate it is the normal Fdt implementation. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jul 15, 2016
-
-
Simon Glass authored
Add a Python version of the libfdt library which contains enough features to support the dtoc tool. This is only a very bare-bones implementation. It requires the 'swig' to build. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This Python library provides a way to access the contents of the device tree. It uses fdtget, so is inefficient for larger device tree files. Signed-off-by:
Simon Glass <sjg@chromium.org>
-