]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/freescale/mx6slevk/mx6slevk.c
mx6: clock: Pass the frequency as argument of enable_fec_anatop_clock()
[karo-tx-uboot.git] / board / freescale / mx6slevk / mx6slevk.c
index 643fdac2b36c2044919508915d09cf32d6962d8c..c4962549a71e2812f3610281da2b726de79e0224 100644 (file)
@@ -106,17 +106,9 @@ int board_mmc_init(bd_t *bis)
 #ifdef CONFIG_FEC_MXC
 int board_eth_init(bd_t *bis)
 {
-       int ret;
-
        setup_iomux_fec();
 
-       ret = cpu_eth_init(bis);
-       if (ret) {
-               printf("FEC MXC: %s:failed\n", __func__);
-               return ret;
-       }
-
-       return 0;
+       return cpu_eth_init(bis);
 }
 
 static int setup_fec(void)
@@ -128,7 +120,7 @@ static int setup_fec(void)
        /* clear gpr1[14], gpr1[18:17] to select anatop clock */
        clrsetbits_le32(&iomuxc_regs->gpr[1], IOMUX_GPR1_FEC_MASK, 0);
 
-       ret = enable_fec_anatop_clock();
+       ret = enable_fec_anatop_clock(ENET_50MHz);
        if (ret)
                return ret;