Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120125
b: refs/heads/master
c: 1a94757
h: refs/heads/master
i:
  120123: 423abee
v: v3
  • Loading branch information
Matt Fleming authored and Paul Mundt committed Dec 22, 2008
1 parent c0dfe26 commit 502eb67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 28 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: e85a47744bbdfbcc65c94b2af67499f861c6fa42
refs/heads/master: 1a94757fae2ac2a9971694b55972f65a396a2f31
35 changes: 8 additions & 27 deletions trunk/arch/sh/boards/mach-cayman/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,31 +94,11 @@ static void ack_cayman_irq(unsigned int irq)
disable_cayman_irq(irq);
}

static void end_cayman_irq(unsigned int irq)
{
if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
enable_cayman_irq(irq);
}

static unsigned int startup_cayman_irq(unsigned int irq)
{
enable_cayman_irq(irq);
return 0; /* never anything pending */
}

static void shutdown_cayman_irq(unsigned int irq)
{
disable_cayman_irq(irq);
}

struct hw_interrupt_type cayman_irq_type = {
.typename = "Cayman-IRQ",
.startup = startup_cayman_irq,
.shutdown = shutdown_cayman_irq,
.enable = enable_cayman_irq,
.disable = disable_cayman_irq,
.ack = ack_cayman_irq,
.end = end_cayman_irq,
struct irq_chip cayman_irq_type = {
.name = "Cayman-IRQ",
.unmask = enable_cayman_irq,
.mask = disable_cayman_irq,
.mask_ack = ack_cayman_irq,
};

int cayman_irq_demux(int evt)
Expand Down Expand Up @@ -187,8 +167,9 @@ void init_cayman_irq(void)
return;
}

for (i=0; i<NR_EXT_IRQS; i++) {
irq_desc[START_EXT_IRQS + i].chip = &cayman_irq_type;
for (i = 0; i < NR_EXT_IRQS; i++) {
set_irq_chip_and_handler(START_EXT_IRQS + i, &cayman_irq_type,
handle_level_irq);
}

/* Setup the SMSC interrupt */
Expand Down

0 comments on commit 502eb67

Please sign in to comment.