diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-26 02:47:42 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-26 02:47:42 -0400 |
commit | f9bd170a87948a9e077149b70fb192c563770fdf (patch) | |
tree | c759b57b67ab41a859e19f7dcee571504b368202 /arch/ppc/platforms/sandpoint.c | |
parent | 25635c71e44111a6bd48f342e144e2fc02d0a314 (diff) |
powerpc: Merge i8259.c into arch/powerpc/sysdev
This changes the parameters for i8259_init so that it takes two
parameters: a physical address for generating an interrupt
acknowledge cycle, and an interrupt number offset. i8259_init
now sets the irq_desc[] for its interrupts; all the callers
were doing this, and that code is gone now. This also defines
a CONFIG_PPC_I8259 symbol to select i8259.o for inclusion, and
makes the platforms that need it select that symbol.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/platforms/sandpoint.c')
-rw-r--r-- | arch/ppc/platforms/sandpoint.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/ppc/platforms/sandpoint.c b/arch/ppc/platforms/sandpoint.c index d4c9781989f..9eeed357230 100644 --- a/arch/ppc/platforms/sandpoint.c +++ b/arch/ppc/platforms/sandpoint.c | |||
@@ -494,18 +494,10 @@ sandpoint_init_IRQ(void) | |||
494 | i8259_irq); | 494 | i8259_irq); |
495 | 495 | ||
496 | /* | 496 | /* |
497 | * openpic_init() has set up irq_desc[16-31] to be openpic | ||
498 | * interrupts. We need to set irq_desc[0-15] to be i8259 | ||
499 | * interrupts. | ||
500 | */ | ||
501 | for(i=0; i < NUM_8259_INTERRUPTS; i++) | ||
502 | irq_desc[i].handler = &i8259_pic; | ||
503 | |||
504 | /* | ||
505 | * The EPIC allows for a read in the range of 0xFEF00000 -> | 497 | * The EPIC allows for a read in the range of 0xFEF00000 -> |
506 | * 0xFEFFFFFF to generate a PCI interrupt-acknowledge transaction. | 498 | * 0xFEFFFFFF to generate a PCI interrupt-acknowledge transaction. |
507 | */ | 499 | */ |
508 | i8259_init(0xfef00000); | 500 | i8259_init(0xfef00000, 0); |
509 | } | 501 | } |
510 | 502 | ||
511 | static unsigned long __init | 503 | static unsigned long __init |