]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[fdt] Use phandle as device location
authorMichael Brown <mcb30@ipxe.org>
Mon, 4 Aug 2025 13:52:00 +0000 (14:52 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 4 Aug 2025 13:52:00 +0000 (14:52 +0100)
commit5f10b7455547fc563caab58f8941111346346433
tree795a858e9a469f8749e650088f9986272426cce8
parentf7a1e9ef8e1dc22ebded786507b872a45e3fb05d
[fdt] Use phandle as device location

Consumption of phandles will be in the form of locating a functional
device (e.g. a GPIO device, or an I2C device, or a reset controller)
by phandle, rather than locating the device tree node to which the
phandle refers.

Repurpose fdt_phandle() to obtain the phandle value (instead of
searching by phandle), and record this value as the bus location
within the generic device structure.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/fdt.c
src/drivers/bus/devtree.c
src/include/ipxe/fdt.h
src/tests/fdt_test.c