Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59258
b: refs/heads/master
c: 486c955
h: refs/heads/master
v: v3
  • Loading branch information
Eric Miao authored and Russell King committed Jul 12, 2007
1 parent c4002f1 commit 918bc47
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 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: 88dfe98c688e1700a4a9f73f8b7d570f4f52170d
refs/heads/master: 486c955118dbbb0f13dc4d40cc5dac2b23f82676
10 changes: 5 additions & 5 deletions trunk/arch/arm/mach-pxa/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@

static void pxa_mask_low_irq(unsigned int irq)
{
ICMR &= ~(1 << (irq + PXA_IRQ_SKIP));
ICMR &= ~(1 << irq);
}

static void pxa_unmask_low_irq(unsigned int irq)
{
ICMR |= (1 << (irq + PXA_IRQ_SKIP));
ICMR |= (1 << irq);
}

static int pxa_set_wake(unsigned int irq, unsigned int on)
Expand Down Expand Up @@ -75,12 +75,12 @@ static struct irq_chip pxa_internal_chip_low = {

static void pxa_mask_high_irq(unsigned int irq)
{
ICMR2 &= ~(1 << (irq - 32 + PXA_IRQ_SKIP));
ICMR2 &= ~(1 << (irq - 32));
}

static void pxa_unmask_high_irq(unsigned int irq)
{
ICMR2 |= (1 << (irq - 32 + PXA_IRQ_SKIP));
ICMR2 |= (1 << (irq - 32));
}

static struct irq_chip pxa_internal_chip_high = {
Expand Down Expand Up @@ -351,7 +351,7 @@ void __init pxa_init_irq(void)
/* GPIO 0 and 1 must have their mask bit always set */
GPIO_IRQ_mask[0] = 3;

for (irq = PXA_IRQ(PXA_IRQ_SKIP); irq <= PXA_IRQ(31); irq++) {
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);
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-arm/arch-pxa/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
rsb \irqstat, \irqnr, #0
and \irqstat, \irqstat, \irqnr
clz \irqnr, \irqstat
rsb \irqnr, \irqnr, #(31 - PXA_IRQ_SKIP)
rsb \irqnr, \irqnr, #31
1001:
.endm
11 changes: 4 additions & 7 deletions trunk/include/asm-arm/arch-pxa/irqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,18 @@
*/


#ifdef CONFIG_PXA27x
#define PXA_IRQ_SKIP 0
#else
#define PXA_IRQ_SKIP 7
#endif

#define PXA_IRQ(x) ((x) - PXA_IRQ_SKIP)
#define PXA_IRQ(x) (x)

#ifdef CONFIG_PXA27x
#define IRQ_SSP3 PXA_IRQ(0) /* SSP3 service request */
#define IRQ_MSL PXA_IRQ(1) /* MSL Interface interrupt */
#define IRQ_USBH2 PXA_IRQ(2) /* USB Host interrupt 1 (OHCI) */
#define IRQ_USBH1 PXA_IRQ(3) /* USB Host interrupt 2 (non-OHCI) */
#define IRQ_KEYPAD PXA_IRQ(4) /* Key pad controller */
#define IRQ_MEMSTK PXA_IRQ(5) /* Memory Stick interrupt */
#define IRQ_PWRI2C PXA_IRQ(6) /* Power I2C interrupt */
#endif

#define IRQ_HWUART PXA_IRQ(7) /* HWUART Transmit/Receive/Error (PXA26x) */
#define IRQ_OST_4_11 PXA_IRQ(7) /* OS timer 4-11 matches (PXA27x) */
#define IRQ_GPIO0 PXA_IRQ(8) /* GPIO0 Edge Detect */
Expand Down

0 comments on commit 918bc47

Please sign in to comment.