aboutsummaryrefslogtreecommitdiff
path: root/hw/xscom.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-02-18 14:57:28 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-18 15:40:42 +1100
commit789c171a6783918783855eb195a9502dfe3791ba (patch)
tree37f7b2bc1e1832e5db438a200e69f8b33ade1a4e /hw/xscom.c
parent0aecda9cb221649e184fdfb9c9cb11be37d60f51 (diff)
downloadskiboot-789c171a6783918783855eb195a9502dfe3791ba.zip
skiboot-789c171a6783918783855eb195a9502dfe3791ba.tar.gz
skiboot-789c171a6783918783855eb195a9502dfe3791ba.tar.bz2
Replace is_mambo_chip with a better chip quirk mechanism
And add some basic qemu quirks Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/xscom.c')
-rw-r--r--hw/xscom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xscom.c b/hw/xscom.c
index 33c04b1..3914bbf 100644
--- a/hw/xscom.c
+++ b/hw/xscom.c
@@ -441,7 +441,7 @@ static void xscom_init_chip_info(struct proc_chip *chip)
/* Mambo chip model lacks the f000f register, just make
* something up (Murano DD2.1)
*/
- if (is_mambo_chip)
+ if (chip_quirk(QUIRK_NO_F000F))
val = 0x221EF04980000000;
else
rc = xscom_read(chip->id, 0xf000f, &val);