Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 1 | /* |
Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 2 | * Copyright 2004-2009 Analog Devices Inc. |
| 3 | * 2003 HuTao |
| 4 | * 2002 Arcturus Networks Inc. (www.arcturusnetworks.com |
| 5 | * Ted Ma <mated@sympatico.ca> |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 6 | * |
Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 7 | * Licensed under the GPL-2 |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef _BFIN_IRQ_H_ |
| 11 | #define _BFIN_IRQ_H_ |
| 12 | |
Mike Frysinger | 8f86001 | 2009-06-08 12:49:48 -0400 | [diff] [blame] | 13 | #include <linux/irqflags.h> |
| 14 | |
Mike Frysinger | d586e83 | 2009-09-21 01:42:52 +0000 | [diff] [blame] | 15 | #include <mach/anomaly.h> |
| 16 | |
Mike Frysinger | 8f86001 | 2009-06-08 12:49:48 -0400 | [diff] [blame] | 17 | /* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h> */ |
Bryan Wu | 639f657 | 2008-08-27 10:51:02 +0800 | [diff] [blame] | 18 | #include <mach/irq.h> |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 19 | |
Yi Li | 6a01f23 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 20 | #if ANOMALY_05000244 && defined(CONFIG_BFIN_ICACHE) |
| 21 | # define NOP_PAD_ANOMALY_05000244 "nop; nop;" |
| 22 | #else |
| 23 | # define NOP_PAD_ANOMALY_05000244 |
| 24 | #endif |
| 25 | |
| 26 | #define idle_with_irq_disabled() \ |
| 27 | __asm__ __volatile__( \ |
| 28 | NOP_PAD_ANOMALY_05000244 \ |
| 29 | ".align 8;" \ |
| 30 | "sti %0;" \ |
| 31 | "idle;" \ |
| 32 | : \ |
| 33 | : "d" (bfin_irq_flags) \ |
| 34 | ) |
| 35 | |
Mike Frysinger | d5ce528 | 2009-06-13 11:32:34 -0400 | [diff] [blame] | 36 | #include <asm-generic/irq.h> |
Yi Li | 6a01f23 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 37 | |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 38 | #endif /* _BFIN_IRQ_H_ */ |