| #
5a30597a |
| 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Update the Fdt class to record phandles
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@
dtoc: Update the Fdt class to record phandles
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>
show more ...
|
| #
ef2715f4 |
| 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Add a 64-bit type and a way to convert cells into 64 bits
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
dtoc: Add a 64-bit type and a way to convert cells into 64 bits
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>
show more ...
|
| #
f08a0424 |
| 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Adjust Node to record its parent
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 Gl
dtoc: Adjust Node to record its parent
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>
show more ...
|
| #
dd31be21 |
| 04-Jun-2017 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-fdt
|
| #
99ed4a2e |
| 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Drop fdt_select.py
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-b
fdt: Drop fdt_select.py
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>
show more ...
|
| #
7b75b448 |
| 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Merge fdt_normal with its base class
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: Simo
fdt: Merge fdt_normal with its base class
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>
show more ...
|
| #
160a7664 |
| 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Drop fdt_fallback library
Drop this now-unused library and associated tests.
Signed-off-by: Simon Glass <sjg@chromium.org>
|
| #
b4360206 |
| 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Support use of the new python libfdt library
Use the new library if available, while retaining backwards compatibility with the old library for now.
Signed-off-by: Simon Glass <sjg@chromium.or
fdt: Support use of the new python libfdt library
Use the new library if available, while retaining backwards compatibility with the old library for now.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
a2ed3f45 |
| 20-Sep-2016 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
babdbde6 |
| 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Support finding the offset of a property
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
dtoc: Support finding the offset of a property
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>
show more ...
|
| #
da5f7499 |
| 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Support packing the device tree
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 a
dtoc: Support packing the device tree
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>
show more ...
|
| #
2a70d897 |
| 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
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 off
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>
show more ...
|
| #
f7a2aeee |
| 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
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
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>
show more ...
|
| #
c322a850 |
| 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Move Widen() and GetPhandle() into the base class
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
dtoc: Move Widen() and GetPhandle() into the base class
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>
show more ...
|
| #
bc1dea36 |
| 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Move BytesToValue() and GetEmpty() into PropBase
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
dtoc: Move BytesToValue() and GetEmpty() into PropBase
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>
show more ...
|
| #
a06a34b2 |
| 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Create a base class for Fdt
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 functiona
dtoc: Create a base class for Fdt
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>
show more ...
|
| #
ebe621d5 |
| 15-Jul-2016 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
76bce10d |
| 04-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dm: Add a more efficient libfdt library
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
dm: Add a more efficient libfdt library
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>
show more ...
|