]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc/e500/qemu-e500: enable coreint
authorScott Wood <scottwood@freescale.com>
Tue, 22 Jan 2013 01:56:43 +0000 (19:56 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 15 Feb 2013 20:13:26 +0000 (14:13 -0600)
The MPIC code will disable coreint if it detects an insufficient
MPIC version.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/85xx/qemu_e500.c

index f6ea5618c7331acfe5daf3dde5a2a17a9e243bdd..5cefc5a9a144fa682a69c4499f5ca3802b7a1c6b 100644 (file)
 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,