At present dtoc has a very simplistic view of phandles. It assumes that a property has only a single phandle with a single argument (i.e. two cells per property). This is not true in many cases. Enhance the implementation to scan all phandles in a property and to use the correct number of arguments (which can be 0, 1, 2 or more) when generating the C code. For the struct definitions, use a struct which can hold the maximum number of arguments used by the property. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Kever Yang <kever.yang@rock-chips.com> |
||
---|---|---|
.. | ||
.gitignore | ||
dtb_platdata.py | ||
dtoc | ||
dtoc_test_addr32_64.dts | ||
dtoc_test_addr32.dts | ||
dtoc_test_addr64_32.dts | ||
dtoc_test_addr64.dts | ||
dtoc_test_aliases.dts | ||
dtoc_test_empty.dts | ||
dtoc_test_phandle.dts | ||
dtoc_test_simple.dts | ||
dtoc_test.dts | ||
dtoc.py | ||
fdt_util.py | ||
fdt.py | ||
test_dtoc.py |