]> git.sur5r.net Git - u-boot/blobdiff - board/st/stm32f746-disco/stm32f746-disco.c
clk: clk_stm32f: Move SYSCFG clock setup into configure_clocks()
[u-boot] / board / st / stm32f746-disco / stm32f746-disco.c
index 58a5ef04c4cc87690775add383d5b7af21a06dc8..8da70281f97691d71a8571b4d66b0ad02a8c3c37 100644 (file)
@@ -69,23 +69,10 @@ int dram_init_banksize(void)
        return 0;
 }
 
-#ifdef CONFIG_ETH_DESIGNWARE
-static int stmmac_setup(void)
-{
-       clock_setup(SYSCFG_CLOCK_CFG);
-       /* Set >RMII mode */
-       STM32_SYSCFG->pmc |= SYSCFG_PMC_MII_RMII_SEL;
-
-       return 0;
-}
-
 int board_early_init_f(void)
 {
-       stmmac_setup();
-
        return 0;
 }
-#endif
 
 #ifdef CONFIG_SPL_BUILD
 #ifdef CONFIG_SPL_OS_BOOT
@@ -162,5 +149,11 @@ int board_late_init(void)
 int board_init(void)
 {
        gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
+
+#ifdef CONFIG_ETH_DESIGNWARE
+       /* Set >RMII mode */
+       STM32_SYSCFG->pmc |= SYSCFG_PMC_MII_RMII_SEL;
+#endif
+
        return 0;
 }