Skip to content

Commit

Permalink
[PATCH] ppc32: explicitly disable 440GP IRQ compatibility mode in 440…
Browse files Browse the repository at this point in the history
…GX setup

Add 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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Eugene Surovegin authored and Linus Torvalds committed Jul 6, 2005
1 parent f326d22 commit 4b1294f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/ppc/syslib/ppc4xx_pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ static int ppc4xx_pic_get_irq(struct pt_regs *regs)

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);
Expand Down

0 comments on commit 4b1294f

Please sign in to comment.