mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-26 13:03:40 +00:00
ea1df3e07c
The new fdt_generate_phandle() function can be used to generate a new, unused phandle given a specific device tree blob. The implementation is somewhat naive in that it simply walks the entire device tree to find the highest phandle value and then returns a phandle value one higher than that. A more clever implementation might try to find holes in the current set of phandle values and fill them. But this implementation is relatively simple and works reliably. Also add a test that validates that phandles generated by this new API are indeed unique. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
libfdt | ||
pylibfdt | ||
.gitignore | ||
checks.c | ||
data.c | ||
dtc-lexer.l | ||
dtc-parser.y | ||
dtc.c | ||
dtc.h | ||
flattree.c | ||
fstree.c | ||
livetree.c | ||
Makefile | ||
Makefile.dtc | ||
srcpos.c | ||
srcpos.h | ||
treesource.c | ||
update-dtc-source.sh | ||
util.c | ||
util.h | ||
version_gen.h |