Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59260
b: refs/heads/master
c: 53665a5
h: refs/heads/master
v: v3
  • Loading branch information
Eric Miao authored and Russell King committed Jul 12, 2007
1 parent 440c19b commit 52ad8aa
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c08b7b3ef6bf489ddabadc03e050f3db2ea44b5d
refs/heads/master: 53665a50fdac6fe11e0dde4e2b95700ed5184dc4
36 changes: 21 additions & 15 deletions trunk/arch/arm/mach-pxa/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,26 @@ static struct irq_chip pxa_internal_chip_low = {
.set_wake = pxa_set_wake,
};

void __init pxa_init_irq_low(void)
{
int irq;

/* disable all IRQs */
ICMR = 0;

/* all IRQs are IRQ, not FIQ */
ICLR = 0;

/* only unmasked interrupts kick us out of idle */
ICCR = 1;

for (irq = PXA_IRQ(0); irq <= PXA_IRQ(31); irq++) {
set_irq_chip(irq, &pxa_internal_chip_low);
set_irq_handler(irq, handle_level_irq);
set_irq_flags(irq, IRQF_VALID);
}
}

#ifdef CONFIG_PXA27x

/*
Expand Down Expand Up @@ -331,12 +351,6 @@ void __init pxa_init_irq(void)
{
int irq;

/* disable all IRQs */
ICMR = 0;

/* all IRQs are IRQ, not FIQ */
ICLR = 0;

/* clear all GPIO edge detects */
GFER0 = 0;
GFER1 = 0;
Expand All @@ -355,18 +369,10 @@ void __init pxa_init_irq(void)
GEDR3 = GEDR3;
#endif

/* only unmasked interrupts kick us out of idle */
ICCR = 1;

/* GPIO 0 and 1 must have their mask bit always set */
GPIO_IRQ_mask[0] = 3;

for (irq = PXA_IRQ(0); irq <= PXA_IRQ(31); irq++) {
set_irq_chip(irq, &pxa_internal_chip_low);
set_irq_handler(irq, handle_level_irq);
set_irq_flags(irq, IRQF_VALID);
}

pxa_init_irq_low();
#ifdef CONFIG_PXA27x
pxa_init_irq_high();
#endif
Expand Down

0 comments on commit 52ad8aa

Please sign in to comment.