| Submitter | Scott Wood |
|---|---|
| Date | Jan. 22, 2013, 1:56 a.m. |
| Message ID | <1358819804-28665-3-git-send-email-scottwood@freescale.com> |
| Download | mbox | patch |
| Permalink | /patch/214332/ |
| State | Accepted |
| Commit | 64871ff6e8f19c99bc6b9a93e4f8926e1650e61e |
| Delegated to: | Kumar Gala |
| Headers | show |
Comments
On Jan 21, 2013, at 7:56 PM, Scott Wood wrote: > The MPIC code will disable coreint if it detects an insufficient > MPIC version. > > Signed-off-by: Scott Wood <scottwood@freescale.com> > --- > arch/powerpc/platforms/85xx/qemu_e500.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) applied to next - k
Patch
diff --git a/arch/powerpc/platforms/85xx/qemu_e500.c b/arch/powerpc/platforms/85xx/qemu_e500.c index f6ea561..5cefc5a 100644 --- a/arch/powerpc/platforms/85xx/qemu_e500.c +++ b/arch/powerpc/platforms/85xx/qemu_e500.c @@ -29,9 +29,10 @@ void __init qemu_e500_pic_init(void) { struct mpic *mpic; + unsigned int flags = MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU | + MPIC_ENABLE_COREINT; - mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU, - 0, 256, " OpenPIC "); + mpic = mpic_alloc(NULL, 0, flags, 0, 256, " OpenPIC "); BUG_ON(mpic == NULL); mpic_init(mpic); @@ -66,7 +67,7 @@ define_machine(qemu_e500) { #ifdef CONFIG_PCI .pcibios_fixup_bus = fsl_pcibios_fixup_bus, #endif - .get_irq = mpic_get_irq, + .get_irq = mpic_get_coreint_irq, .restart = fsl_rstcr_restart, .calibrate_decr = generic_calibrate_decr, .progress = udbg_progress,
The MPIC code will disable coreint if it detects an insufficient MPIC version. Signed-off-by: Scott Wood <scottwood@freescale.com> --- arch/powerpc/platforms/85xx/qemu_e500.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)