aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2017-02-17 11:56:32 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-02-22 17:39:00 +1100
commitbdc15c654b1a18931f28c48e026bbbb572551c52 (patch)
treee8d6b820e0d30076fc3f816114c34e1d021dec2b /external
parenta5274aa5259c057f1db7163c5988cc98ba82ed09 (diff)
downloadskiboot-bdc15c654b1a18931f28c48e026bbbb572551c52.zip
skiboot-bdc15c654b1a18931f28c48e026bbbb572551c52.tar.gz
skiboot-bdc15c654b1a18931f28c48e026bbbb572551c52.tar.bz2
external/mambo: add device tree fixup for POWER9 stop levels
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r--external/mambo/skiboot.tcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index fdcf14d..8ed0257 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -202,6 +202,13 @@ set reg [list $fake_nvram_start $fake_nvram_size ]
mysim of addprop $fake_nvram_node array64 "reg" reg
mysim of addprop $fake_nvram_node empty "name" "ibm,fake-nvram"
+# Allow P9 to use all idle states
+if { $default_config == "P9" } {
+ set opal_node [mysim of addchild $root_node "ibm,opal" ""]
+ set power_mgt_node [mysim of addchild $opal_node "power-mgt" ""]
+ mysim of addprop $power_mgt_node int "ibm,enabled-stop-levels" 0xffffffff
+}
+
# Init CPUs
set pir 0
for { set c 0 } { $c < $mconf(cpus) } { incr c } {