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>
This commit is contained in:
@@ -67,7 +67,11 @@ static inline notrace unsigned long __hard_local_irq_save(void)
|
||||
|
||||
static inline notrace int hard_irqs_disabled_flags(unsigned long flags)
|
||||
{
|
||||
#ifdef CONFIG_BF60x
|
||||
return (flags & IMASK_IVG11) == 0;
|
||||
#else
|
||||
return (flags & ~0x3f) == 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline notrace int hard_irqs_disabled(void)
|
||||
@@ -224,7 +228,7 @@ static inline notrace void hard_local_irq_restore(unsigned long flags)
|
||||
* Direct interface to linux/irqflags.h.
|
||||
*/
|
||||
#define arch_local_save_flags() hard_local_save_flags()
|
||||
#define arch_local_irq_save(flags) __hard_local_irq_save()
|
||||
#define arch_local_irq_save() __hard_local_irq_save()
|
||||
#define arch_local_irq_restore(flags) __hard_local_irq_restore(flags)
|
||||
#define arch_local_irq_enable() __hard_local_irq_enable()
|
||||
#define arch_local_irq_disable() __hard_local_irq_disable()
|
||||
|
Reference in New Issue
Block a user