From 9594a715b50c338f1261e88c12c120cf8e5b8bba Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Sun, 30 Nov 2014 12:21:34 +1100 Subject: Add tweaks to work in Mambo simulator Mambo doesn't implement various things such as PBA SCOMs, LPC, ChipTOD, etc... It also provides a special console hook. This adds detection of Mambo via the /mambo node, and enables us to boot all the way to Linux. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Stewart Smith --- hw/occ.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hw/occ.c') diff --git a/hw/occ.c b/hw/occ.c index 5b3c3a6..e1eaf30 100644 --- a/hw/occ.c +++ b/hw/occ.c @@ -510,6 +510,9 @@ static struct fsp_client fsp_occ_client = { void occ_send_dummy_interrupt(void) { + /* Mambo chip doesn't do this */ + if (is_mambo_chip) + return; xscom_writeme(OCB_OCI_OCCMISC_OR, OCB_OCI_OCIMISC_IRQ | OCB_OCI_OCIMISC_IRQ_OPAL_DUMMY); -- cgit v1.1