diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-05-02 18:52:38 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-05-03 15:50:33 +1000 |
commit | 4f930a016f791db2d46c37c2946eac8d2966aee0 (patch) | |
tree | 77830daf77ddc3222bd499eec702f9458f4b50de | |
parent | cb2c12697f2f09fee9776bb97c5ffb3cf32b6450 (diff) | |
download | blackbird-skiboot-4f930a016f791db2d46c37c2946eac8d2966aee0.tar.gz blackbird-skiboot-4f930a016f791db2d46c37c2946eac8d2966aee0.zip |
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>
-rw-r--r-- | external/mambo/skiboot.tcl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl index cffac328..e16a21c9 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 |