net: fec: fix 10MBit configuration
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 29 Oct 2014 10:56:01 +0000 (11:56 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 29 Oct 2014 10:56:01 +0000 (11:56 +0100)
drivers/net/fec_mxc.c

index b621f8f..7208136 100644 (file)
@@ -516,6 +516,14 @@ static int fec_open(struct eth_device *edev)
                writel(ecr, &fec->eth->ecntrl);
                writel(rcr, &fec->eth->r_cntrl);
        }
+#elif defined(CONFIG_MX28)
+       {
+               u32 rcr = readl(&fec->eth->r_cntrl) & ~FEC_RCNTRL_RMII_10T;
+
+               if (speed == _10BASET)
+                       rcr |= FEC_RCNTRL_RMII_10T;
+               writel(rcr, &fec->eth->r_cntrl);
+       }
 #endif
        debug("%s:Speed=%i\n", __func__, speed);