Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64871ff6 authored by Scott Wood's avatar Scott Wood Committed by Kumar Gala
Browse files

powerpc/e500/qemu-e500: enable coreint



The MPIC code will disable coreint if it detects an insufficient
MPIC version.

Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 7c509ee0
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -29,9 +29,10 @@
void __init qemu_e500_pic_init(void)
void __init qemu_e500_pic_init(void)
{
{
	struct mpic *mpic;
	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,
	mpic = mpic_alloc(NULL, 0, flags, 0, 256, " OpenPIC  ");
			0, 256, " OpenPIC  ");


	BUG_ON(mpic == NULL);
	BUG_ON(mpic == NULL);
	mpic_init(mpic);
	mpic_init(mpic);
@@ -66,7 +67,7 @@ define_machine(qemu_e500) {
#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus,
	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus,
#endif
#endif
	.get_irq		= mpic_get_irq,
	.get_irq		= mpic_get_coreint_irq,
	.restart		= fsl_rstcr_restart,
	.restart		= fsl_rstcr_restart,
	.calibrate_decr		= generic_calibrate_decr,
	.calibrate_decr		= generic_calibrate_decr,
	.progress		= udbg_progress,
	.progress		= udbg_progress,