]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: net: Fix rate of MDC for 111MHz CPU_1x clk
authorJoe Hershberger <joe.hershberger@ni.com>
Thu, 19 Apr 2012 19:27:05 +0000 (14:27 -0500)
committerJagan <jaganna@xilinx.com>
Thu, 31 May 2012 07:40:25 +0000 (13:10 +0530)
Change the MDC divisor from 32 to 48

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
board/xilinx/dfe/xgmac.c

index e8453c4348b6859caf1539e07a5695c988723f23..9159aa517592e82ce02d303d39fa98d7bb53cc8a 100644 (file)
@@ -215,7 +215,7 @@ int Xgmac_init(struct eth_device *dev, bd_t * bis)
        printf("Trying to set up GEM link...\n");
 
        /*************************** MAC Setup ***************************/
-       tmp = (2 << 18);        /* MDC clock division (32 for up to 80MHz) */
+       tmp = (3 << 18);        /* MDC clock division (48 for up to 120MHz) */
        tmp |= (1 << 17);       /* set for FCS removal */
        tmp |= (1 << 10);       /* enable gigabit */
        tmp |= (1 << 4);        /* copy all frames */