[dt] Locate parent node at point of use in dt_ioremap()

We currently rely on the recursive nature of devicetree bus probing to
obtain the region cell size specification from the parent device.
This blocks the possibility of creating a standalone console device
based on /chosen/stdout-path before probing the whole bus.

Fix by using fdt_parent() to locate the parent device at the point of
use within dt_ioremap().

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-05-30 16:39:10 +01:00
parent 1762568ec5
commit bb2011241f
2 changed files with 15 additions and 12 deletions

View File

@@ -25,9 +25,6 @@ struct dt_device {
struct dt_driver *driver;
/** Driver-private data */
void *priv;
/** Register cell size specification */
struct fdt_reg_cells regs;
};
/** A devicetree driver */