diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2012-12-13 22:19:24 -0500 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-12-13 22:20:22 -0500 |
commit | 86794b43569c9b8936dff2e8eed503393379af6e (patch) | |
tree | a1e22a88f584c300792167de4b59bae7ec37d9a3 /arch/blackfin/mach-bf609 | |
parent | 1439d030b9032261f1111a2dd16b9a8ca11112ef (diff) |
blackfin: SEC: clean up SEC interrupt initialization
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>
Diffstat (limited to 'arch/blackfin/mach-bf609')
-rw-r--r-- | arch/blackfin/mach-bf609/include/mach/irq.h | 3 | ||||
-rw-r--r-- | arch/blackfin/mach-bf609/pm.c | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/arch/blackfin/mach-bf609/include/mach/irq.h b/arch/blackfin/mach-bf609/include/mach/irq.h index 23e74cdeeee8..fa0843d5d77a 100644 --- a/arch/blackfin/mach-bf609/include/mach/irq.h +++ b/arch/blackfin/mach-bf609/include/mach/irq.h | |||
@@ -9,9 +9,6 @@ | |||
9 | 9 | ||
10 | #include <mach-common/irq.h> | 10 | #include <mach-common/irq.h> |
11 | 11 | ||
12 | #undef BFIN_IRQ | ||
13 | #define BFIN_IRQ(x) ((x) + IVG15) | ||
14 | |||
15 | #define NR_PERI_INTS (5 * 32) | 12 | #define NR_PERI_INTS (5 * 32) |
16 | 13 | ||
17 | #define IRQ_SEC_ERR BFIN_IRQ(0) /* SEC Error */ | 14 | #define IRQ_SEC_ERR BFIN_IRQ(0) /* SEC Error */ |
diff --git a/arch/blackfin/mach-bf609/pm.c b/arch/blackfin/mach-bf609/pm.c index dacafc163f76..ad505d9db4a8 100644 --- a/arch/blackfin/mach-bf609/pm.c +++ b/arch/blackfin/mach-bf609/pm.c | |||
@@ -174,7 +174,6 @@ void bfin_hibernate_syscontrol(void) | |||
174 | bfin_write32(DPM0_RESTORE5, bfin_read32(DPM0_RESTORE5) | 4); | 174 | bfin_write32(DPM0_RESTORE5, bfin_read32(DPM0_RESTORE5) | 4); |
175 | } | 175 | } |
176 | 176 | ||
177 | #define IRQ_SID(irq) ((irq) - IVG15) | ||
178 | asmlinkage void enter_deepsleep(void); | 177 | asmlinkage void enter_deepsleep(void); |
179 | 178 | ||
180 | __attribute__((l1_text)) | 179 | __attribute__((l1_text)) |
@@ -311,7 +310,7 @@ static irqreturn_t test_isr(int irq, void *dev_id) | |||
311 | { | 310 | { |
312 | printk(KERN_DEBUG "gpio irq %d\n", irq); | 311 | printk(KERN_DEBUG "gpio irq %d\n", irq); |
313 | if (irq == 231) | 312 | if (irq == 231) |
314 | bfin_sec_raise_irq(IRQ_SID(IRQ_SOFT1)); | 313 | bfin_sec_raise_irq(BFIN_SYSIRQ(IRQ_SOFT1)); |
315 | return IRQ_HANDLED; | 314 | return IRQ_HANDLED; |
316 | } | 315 | } |
317 | 316 | ||