[SLOF] [PATCH 1/2] fdt: Fix unit name during CAS update

Greg Kurz groug at kaod.org
Thu Jan 30 05:21:05 AEDT 2020


When new nodes are created at CAS, we currently rely on "finish-device" to
set the unit name, but it only uses the first entry of the "reg" property.
Some nodes, like PHBs for example, do need more entries from "reg" though.

In order to support creating these, use "fdt-reg-unit" to fix the unit
name of newly created nodes, like we already do when processing the FDT
at boot.

Signed-off-by: Greg Kurz <groug at kaod.org>
---
 board-qemu/slof/fdt.fs |    1 +
 1 file changed, 1 insertion(+)

diff --git a/board-qemu/slof/fdt.fs b/board-qemu/slof/fdt.fs
index 193a19e3087f..2ceb366d4f68 100644
--- a/board-qemu/slof/fdt.fs
+++ b/board-qemu/slof/fdt.fs
@@ -560,6 +560,7 @@ r> drop
     drop
     swap		( a1 newnode? )
     IF
+        " reg" get-node get-package-property IF ELSE fdt-reg-unit THEN
         get-node finish-device set-node
 	fdt-debug IF ." Finished subnode: " pwd  get-node ."  = " . cr THEN
     THEN



More information about the SLOF mailing list