]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
smc91x: Clean up omap interrupt level
authorTony Lindgren <tony@atomide.com>
Thu, 16 Nov 2006 00:31:23 +0000 (02:31 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 16 Nov 2006 00:31:23 +0000 (02:31 +0200)
Since omap1 does not have level GPIO interrupts, all omap1 class
processors should use falling edge, except for Innovator which
routes the interrupt via FPGA and needs rising edge. All omap2
class processors should use low level interrupt.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/net/smc91x.h

index a8640169fc77afede8c7f28376ccc8967b214668..7977b7c4cc3797b93be4d8ad7657819c5d4ad69f 100644 (file)
@@ -192,13 +192,12 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg)
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
 
-#define        SMC_IRQ_FLAGS (( \
-                  machine_is_omap_h2() \
-               || machine_is_omap_h3() \
-               || machine_is_omap_h4() \
-               || (machine_is_omap_innovator() && !cpu_is_omap1510()) \
-       ) ? IRQF_TRIGGER_FALLING : IRQF_TRIGGER_RISING)
-
+#ifdef CONFIG_ARCH_OMAP1
+#define        SMC_IRQ_FLAGS   (machine_is_omap_innovator() ? IRQF_TRIGGER_RISING : \
+                               IRQF_TRIGGER_FALLING)
+#else
+#define SMC_IRQ_FLAGS          IRQF_TRIGGER_LOW
+#endif
 
 #elif  defined(CONFIG_SH_SH4202_MICRODEV)