Fix IRQ flags for Apollon and OSK (OMAP5912) board. Apollon
fix from Kyungmin Park (kyungmin.park_at_samsung.com):
Apollon (omap2420) use IRQF_TRIGGER_RISING which means
IRQF_TRIGGER_HIGH.
Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
#include <asm/arch/cpu.h>
#ifdef CONFIG_ARCH_OMAP1
-#define SMC_IRQ_FLAGS (machine_is_omap_innovator() ? IRQF_TRIGGER_RISING : \
- IRQF_TRIGGER_FALLING)
+#define SMC_IRQ_FLAGS ((machine_is_omap_innovator() || \
+ machine_is_omap_osk()) \
+ ? IRQF_TRIGGER_RISING : IRQF_TRIGGER_FALLING)
#else
-#define SMC_IRQ_FLAGS IRQF_TRIGGER_LOW
+#define SMC_IRQ_FLAGS (machine_is_omap_apollon() \
+ ? IRQF_TRIGGER_HIGH : IRQF_TRIGGER_LOW)
#endif
#elif defined(CONFIG_SH_SH4202_MICRODEV)