diff options
author | Steven Miao <realmz6@gmail.com> | 2012-05-16 05:56:51 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-05-21 02:54:15 -0400 |
commit | 4f6b600fdc1771efbb01d7a66328ac714e898bcb (patch) | |
tree | 317860db4041b0e77895a882f861f3996cdb3d1b /arch/blackfin/include | |
parent | 969003152aa9085e50ce23822c60fab82222ecef (diff) |
blackfin: mach-common: add sec support for bf60x
Add system event controller support for bf60x so that interrupt can be
handled.
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r-- | arch/blackfin/include/asm/irqflags.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/irqflags.h b/arch/blackfin/include/asm/irqflags.h index 43eb4749de3d..07aff230a812 100644 --- a/arch/blackfin/include/asm/irqflags.h +++ b/arch/blackfin/include/asm/irqflags.h | |||
@@ -67,7 +67,11 @@ static inline notrace unsigned long __hard_local_irq_save(void) | |||
67 | 67 | ||
68 | static inline notrace int hard_irqs_disabled_flags(unsigned long flags) | 68 | static inline notrace int hard_irqs_disabled_flags(unsigned long flags) |
69 | { | 69 | { |
70 | #ifdef CONFIG_BF60x | ||
71 | return (flags & IMASK_IVG11) == 0; | ||
72 | #else | ||
70 | return (flags & ~0x3f) == 0; | 73 | return (flags & ~0x3f) == 0; |
74 | #endif | ||
71 | } | 75 | } |
72 | 76 | ||
73 | static inline notrace int hard_irqs_disabled(void) | 77 | static inline notrace int hard_irqs_disabled(void) |
@@ -224,7 +228,7 @@ static inline notrace void hard_local_irq_restore(unsigned long flags) | |||
224 | * Direct interface to linux/irqflags.h. | 228 | * Direct interface to linux/irqflags.h. |
225 | */ | 229 | */ |
226 | #define arch_local_save_flags() hard_local_save_flags() | 230 | #define arch_local_save_flags() hard_local_save_flags() |
227 | #define arch_local_irq_save(flags) __hard_local_irq_save() | 231 | #define arch_local_irq_save() __hard_local_irq_save() |
228 | #define arch_local_irq_restore(flags) __hard_local_irq_restore(flags) | 232 | #define arch_local_irq_restore(flags) __hard_local_irq_restore(flags) |
229 | #define arch_local_irq_enable() __hard_local_irq_enable() | 233 | #define arch_local_irq_enable() __hard_local_irq_enable() |
230 | #define arch_local_irq_disable() __hard_local_irq_disable() | 234 | #define arch_local_irq_disable() __hard_local_irq_disable() |