Skip to content

Commit

Permalink
blackfin: SEC: clean up SEC interrupt initialization
Browse files Browse the repository at this point in the history
Append the SEC IRQ after the IVG6, which is consistent to BF5xx SIC.
Exclude SIC irqchip fucntions from SEC code.
Call handle_fasteoi_irq in SEC error and fault handler.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
  • Loading branch information
Sonic Zhang authored and Bob Liu committed Dec 14, 2012
1 parent 1439d03 commit 86794b4
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 146 deletions.
5 changes: 3 additions & 2 deletions 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 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 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 86794b4

Please sign in to comment.