diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-09 08:42:45 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-22 11:59:17 +1000 |
commit | ffc262f7a11de769b4b8fb21288a301dee0de756 (patch) | |
tree | 3496f6f84b0d354e2b437419a89b78482b726124 /hdata | |
parent | 9b3a7bad3e7329ba52bcdcc4b7e984aa7dad1cf5 (diff) | |
download | skiboot-ffc262f7a11de769b4b8fb21288a301dee0de756.zip skiboot-ffc262f7a11de769b4b8fb21288a301dee0de756.tar.gz skiboot-ffc262f7a11de769b4b8fb21288a301dee0de756.tar.bz2 |
HDAT/device-tree: only add lid-type on pre-POWER9 systems
Largely a relic of back when we had multiple entry points into OPAL depending
on which mechanism on an FSP we were using to get loaded, this isn't needed
on modern P9 as we only have one entry point (we don't do the PHYP LID hack).
Fixes: https://github.com/open-power/skiboot/issues/82
Reported-by: Pavaman Subramaniyam <pavsubra@linux.vnet.ibm.com>
Reported-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/spira.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hdata/spira.c b/hdata/spira.c index d5e6984..59ea5cb 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -1,4 +1,4 @@ -/* Copyright 2013-2014 IBM Corp. +/* Copyright 2013-2017 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1270,7 +1270,9 @@ int parse_hdat(bool is_opal) */ dt_add_property_cells(dt_root, "#address-cells", 2); dt_add_property_cells(dt_root, "#size-cells", 2); - dt_add_property_string(dt_root, "lid-type", is_opal ? "opal" : "phyp"); + + if (proc_gen < proc_gen_p9) + dt_add_property_string(dt_root, "lid-type", is_opal ? "opal" : "phyp"); /* Add any BMCs and enable the LPC UART */ bmc_parse(); |