aboutsummaryrefslogtreecommitdiff
path: root/external/mambo
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-05-02 18:52:38 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-05-03 15:50:33 +1000
commit4f930a016f791db2d46c37c2946eac8d2966aee0 (patch)
tree77830daf77ddc3222bd499eec702f9458f4b50de /external/mambo
parentcb2c12697f2f09fee9776bb97c5ffb3cf32b6450 (diff)
downloadskiboot-4f930a016f791db2d46c37c2946eac8d2966aee0.zip
skiboot-4f930a016f791db2d46c37c2946eac8d2966aee0.tar.gz
skiboot-4f930a016f791db2d46c37c2946eac8d2966aee0.tar.bz2
mambo: Fix reserved-ranges node
The DT bindings for the /reserved-memory node requires that it: a) Has #size-cells equal to the root b) Has #address-cells equal to the root c) Has an empty ranges property (i.e directly maps on the root) Currently we do not assign any of these when generating the Mambo device tree which causes the booted kernel to ignore the reservations in the /reserved-memory node. Fixes: b7b5302af737 Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/mambo')
-rw-r--r--external/mambo/skiboot.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index cffac32..e16a21c 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -196,6 +196,10 @@ if { [info exists env(SKIBOOT_NVRAM)] } {
# Add device tree entry for NVRAM
set reserved_memory [mysim of addchild $root_node "reserved-memory" ""]
+mysim of addprop $reserved_memory int "#size-cells" 2
+mysim of addprop $reserved_memory int "#address-cells" 2
+mysim of addprop $reserved_memory empty "ranges" ""
+
set fake_nvram_node [mysim of addchild $reserved_memory "ibm,fake-nvram" ""]
set reg [list $fake_nvram_start $fake_nvram_size ]
mysim of addprop $fake_nvram_node array64 "reg" reg