aboutsummaryrefslogtreecommitdiff
path: root/hw/xscom.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-02-03 12:07:15 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-02-03 12:07:15 +1100
commit2cf1579b478e0dfa31788340cab1b99c4c636daa (patch)
treef7957cd44664c66175607fbee33b00da27df6626 /hw/xscom.c
parentec9a273a5f5c001b55395cd66abf051484f1e5a8 (diff)
downloadskiboot-2cf1579b478e0dfa31788340cab1b99c4c636daa.zip
skiboot-2cf1579b478e0dfa31788340cab1b99c4c636daa.tar.gz
skiboot-2cf1579b478e0dfa31788340cab1b99c4c636daa.tar.bz2
mambo: Don't probe ECID for DD1.0X on Mambo
SCOM doesn't exist, we end up in a sad place (machine check) Fixes: c9cadb4fe60d4d41fc45a35a1d2ae27e0632c679 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/xscom.c')
-rw-r--r--hw/xscom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/xscom.c b/hw/xscom.c
index cca3d7d..d7b8627 100644
--- a/hw/xscom.c
+++ b/hw/xscom.c
@@ -604,7 +604,9 @@ static void xscom_init_chip_info(struct proc_chip *chip)
* On P9 DD1.0, grab the ECID bits to differenciate
* DD1.01, 1.02 etc...
*/
- if (proc_gen == proc_gen_p9 && chip->ec_level == 0x10) {
+ if (chip_quirk(QUIRK_MAMBO_CALLOUTS)) {
+ chip->ec_rev = 0;
+ } else if (proc_gen == proc_gen_p9 && chip->ec_level == 0x10) {
uint64_t ecid2 = 0;
uint8_t rev;
xscom_read(chip->id, 0x18002, &ecid2);