]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
smc91x: Clean up omap machine type handling
authorTony Lindgren <tony@atomide.com>
Wed, 28 Feb 2007 12:27:19 +0000 (04:27 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 11 Jul 2007 09:48:51 +0000 (02:48 -0700)
Level handling is different for omap1 and omap2.

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

index f8429449dc1ebf0e28a3de7e7184f72dbca38f8f..3f097c04e7dc685b7aa9edbdcba5704920fec086 100644 (file)
@@ -241,13 +241,14 @@ 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() ||        \
+                                       machine_is_omap_osk())          \
+                               ? IRQF_TRIGGER_RISING : IRQF_TRIGGER_FALLING)
+#else
+#define SMC_IRQ_FLAGS          (machine_is_omap_apollon()              \
+                               ? IRQF_TRIGGER_RISING : IRQF_TRIGGER_LOW)
+#endif
 
 #elif  defined(CONFIG_SH_SH4202_MICRODEV)