Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346860
b: refs/heads/master
c: 86794b4
h: refs/heads/master
v: v3
  • Loading branch information
Sonic Zhang authored and Bob Liu committed Dec 14, 2012
1 parent 762dbe6 commit 2555d5b
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 147 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: 1439d030b9032261f1111a2dd16b9a8ca11112ef
refs/heads/master: 86794b43569c9b8936dff2e8eed503393379af6e
5 changes: 3 additions & 2 deletions trunk/arch/blackfin/include/mach-common/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
#define IRQ_HWERR 5 /* Hardware Error */
#define IRQ_CORETMR 6 /* Core timer */

#define BFIN_IRQ(x) ((x) + 7)

#define IVG7 7
#define IVG8 8
#define IVG9 9
Expand All @@ -52,6 +50,9 @@
#define IVG14 14
#define IVG15 15

#define BFIN_IRQ(x) ((x) + IVG7)
#define BFIN_SYSIRQ(x) ((x) - IVG7)

#define NR_IRQS (NR_MACH_IRQS + NR_SPARE_IRQS)

#endif
3 changes: 0 additions & 3 deletions trunk/arch/blackfin/mach-bf609/include/mach/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

#include <mach-common/irq.h>

#undef BFIN_IRQ
#define BFIN_IRQ(x) ((x) + IVG15)

#define NR_PERI_INTS (5 * 32)

#define IRQ_SEC_ERR BFIN_IRQ(0) /* SEC Error */
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/blackfin/mach-bf609/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ void bfin_hibernate_syscontrol(void)
bfin_write32(DPM0_RESTORE5, bfin_read32(DPM0_RESTORE5) | 4);
}

#define IRQ_SID(irq) ((irq) - IVG15)
asmlinkage void enter_deepsleep(void);

__attribute__((l1_text))
Expand Down Expand Up @@ -311,7 +310,7 @@ static irqreturn_t test_isr(int irq, void *dev_id)
{
printk(KERN_DEBUG "gpio irq %d\n", irq);
if (irq == 231)
bfin_sec_raise_irq(IRQ_SID(IRQ_SOFT1));
bfin_sec_raise_irq(BFIN_SYSIRQ(IRQ_SOFT1));
return IRQ_HANDLED;
}

Expand Down
Loading

0 comments on commit 2555d5b

Please sign in to comment.