* [PATCH] ppc32: explicitly disable 440GP IRQ compatibility mode in 440GX setup
@ 2005-07-01 17:02 Eugene Surovegin
0 siblings, 0 replies; only message in thread
From: Eugene Surovegin @ 2005-07-01 17:02 UTC (permalink / raw)
To: Andrew Morton; +Cc: linuxppc-embedded
Andrew,
the following patch adds explicit disabling of 440GP IRQ compatibility
mode when configuring 440GX interrupt controller. This helps when
board firmware for some reason uses this compatibility mode and
leaves it enabled. It breaks 440GX interrupt code because it assumes
native 440GX IRQ mode. People seems to be continuously bitten by this.
Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
diff --git a/arch/ppc/syslib/ppc4xx_pic.c b/arch/ppc/syslib/ppc4xx_pic.c
--- a/arch/ppc/syslib/ppc4xx_pic.c
+++ b/arch/ppc/syslib/ppc4xx_pic.c
@@ -110,6 +110,10 @@ static int ppc4xx_pic_get_irq(struct pt_
static void __init ppc4xx_pic_impl_init(void)
{
+#if defined(CONFIG_440GX)
+ /* Disable 440GP compatibility mode if it was enabled in firmware */
+ SDR_WRITE(DCRN_SDR_MFR, SDR_READ(DCRN_SDR_MFR) & ~DCRN_SDR_MFR_PCM);
+#endif
/* Configure Base UIC */
mtdcr(DCRN_UIC_CR(UICB), 0);
mtdcr(DCRN_UIC_TR(UICB), 0);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-01 17:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-01 17:02 [PATCH] ppc32: explicitly disable 440GP IRQ compatibility mode in 440GX setup Eugene Surovegin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).