Patchwork [ppc-next,3/3] openpic: set mixed mode as supported

login
register
mail settings
Submitter Alexander Graf
Date Jan. 7, 2013, 7:21 p.m.
Message ID <1357586499-11463-4-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/210059/
State New
Headers show

Comments

Alexander Graf - Jan. 7, 2013, 7:21 p.m.
The Raven MPIC implementation supports the "Mixed" mode to work with
an i8259. While we don't implement mixed mode, we should mark it as
a supported mode in the mode bitmap.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 hw/openpic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/openpic.c b/hw/openpic.c
index 713322b..aeee479 100644
--- a/hw/openpic.c
+++ b/hw/openpic.c
@@ -1467,6 +1467,7 @@  static int openpic_init(SysBusDevice *dev)
         opp->irq_ipi0 = RAVEN_IPI_IRQ;
         opp->irq_tim0 = RAVEN_TMR_IRQ;
         opp->brr1 = -1;
+        opp->mpic_mode_mask = GCR_MODE_MIXED;
         list = list_le;
         /* Don't map MSI region */
         list[2].map = false;