aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-02-18 19:37:42 +0100
committerLubomir Rintel <lkundrak@v3.sk>2019-04-19 07:28:32 +0200
commit26a9823b3c702809abf812b63f181c70aa8e795c (patch)
tree39ccf61ab7506d75809c0d382d1629bb64f5c8c1
parent515cda96c45f3ee979382e7e660587cfe5754084 (diff)
downloadopenfirmware-26a9823b3c702809abf812b63f181c70aa8e795c.tar.gz
core: specify device_type for /memory node
Linux's early_init_dt_scan_nodes() won't be able to find a memory node without this and the boot will fail very early.
-rw-r--r--ofw/core/allocph1.fth2
1 files changed, 2 insertions, 0 deletions
diff --git a/ofw/core/allocph1.fth b/ofw/core/allocph1.fth
index d58445c7..84a32fcf 100644
--- a/ofw/core/allocph1.fth
+++ b/ofw/core/allocph1.fth
@@ -72,6 +72,8 @@ new-device
" memory" device-name
+" memory" " device_type" string-property
+
list: physavail 0 physavail !
headers