summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/devtree.h
diff options
context:
space:
mode:
authorMichael Brown2025-05-30 17:39:10 +0200
committerMichael Brown2025-05-30 17:39:10 +0200
commitbb2011241fcf15de4edd962fe9656e513ad19174 (patch)
tree5004c9c6bab354aa04af29891316304c3f550a40 /src/include/ipxe/devtree.h
parent[fdt] Provide ability to locate the parent device node (diff)
downloadipxe-bb2011241fcf15de4edd962fe9656e513ad19174.tar.gz
ipxe-bb2011241fcf15de4edd962fe9656e513ad19174.tar.xz
ipxe-bb2011241fcf15de4edd962fe9656e513ad19174.zip
[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>
Diffstat (limited to 'src/include/ipxe/devtree.h')
-rw-r--r--src/include/ipxe/devtree.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/include/ipxe/devtree.h b/src/include/ipxe/devtree.h
index 6e9286af4..46d8b5d86 100644
--- a/src/include/ipxe/devtree.h
+++ b/src/include/ipxe/devtree.h
@@ -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 */