net: fec_mxc: don't write to reserved register on i.MX6UL
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 9 Oct 2015 09:42:36 +0000 (11:42 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 9 Oct 2015 09:42:36 +0000 (11:42 +0200)
drivers/net/fec_mxc.c

index 61f2db8..ee6822a 100644 (file)
@@ -559,9 +559,11 @@ static int fec_init(struct eth_device *dev, bd_t* bd)
        writel(0x00000000, &fec->eth->gaddr1);
        writel(0x00000000, &fec->eth->gaddr2);
 
+       /* Do not access reserved register for i.MX6UL */
+#ifndef CONFIG_SOC_MX6UL
        /* FIFO receive start register */
        writel(0x520, &fec->eth->r_fstart);
-
+#endif
        /* size and address of each buffer */
        writel(FEC_MAX_PKT_SIZE, &fec->eth->emrbr);
        writel((uint32_t)fec->tbd_base, &fec->eth->etdsr);