ramips: raeth: enable MDIO code for RT3883
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 13 Feb 2012 15:18:03 +0000 (15:18 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 13 Feb 2012 15:18:03 +0000 (15:18 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30497 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ramips/files/drivers/net/ramips.c

index 302942a..e211f47 100644 (file)
@@ -88,7 +88,7 @@ ramips_hw_set_macaddr(unsigned char *mac)
                     RAMIPS_GDMA1_MAC_ADRL);
 }
 
-#ifdef CONFIG_RALINK_RT288X
+#if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT3883)
 
 #define RAMIPS_MDIO_RETRY      1000
 
@@ -262,7 +262,7 @@ static inline void
 ramips_mdio_cleanup(struct raeth_priv *re)
 {
 }
-#endif /* CONFIG_RALINK_RT288X */
+#endif /* CONFIG_RALINK_RT288X || CONFIG_RALINK_RT3883 */
 
 static void
 ramips_cleanup_dma(struct raeth_priv *re)