libfdt: Add helpers to read #address-cells and #size-cells

This patch makes a small start on libfdt functions which actually help to
parse the contents of device trees, rather than purely manipulating the
tree's structure.

We add simple helpers to read and sanity check the #address-cells and
#size-cells values for a given node.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2014-05-11 13:13:46 +10:00
parent f240527e54
commit 40f7f576c8
8 changed files with 243 additions and 2 deletions

1
tests/.gitignore vendored
View file

@ -3,6 +3,7 @@
*.test.dts
tmp.*
/add_subnode_with_nops
/addr_size_cells
/appendprop[12]
/asm_tree_dump
/boot-cpuid