1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-23 12:25:21 +01:00
Files
u-boot-megous/lib
Thierry Reding ea1df3e07c libfdt: Add phandle generation helper
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>
2019-04-11 20:10:50 -06:00
..
2019-04-03 10:26:46 -04:00
2019-02-13 09:40:05 +01:00
2011-01-18 23:38:08 +01:00
2017-04-13 09:41:10 -04:00
2010-09-19 19:29:47 +02:00
2018-06-13 07:49:12 -04:00
2019-02-02 08:19:17 -05:00
2019-02-09 07:50:58 -05:00
2012-04-29 14:14:08 +02:00
2018-09-05 16:02:34 -04:00
2018-11-20 19:14:22 -07:00
2019-03-29 10:53:18 -04:00
2019-02-19 08:55:43 -05:00