]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/mpc8xx/cpu.c
ppc4xx/net: Fix MDIO clock setup
[karo-tx-uboot.git] / cpu / mpc8xx / cpu.c
index 420eaedf504e2ee50dc07bba248915370c71041e..2eb848bd0ef23f59902235f3d1993d4059a35b5c 100644 (file)
@@ -37,6 +37,8 @@
 #include <watchdog.h>
 #include <command.h>
 #include <mpc8xx.h>
+#include <commproc.h>
+#include <netdev.h>
 #include <asm/cache.h>
 
 #if defined(CONFIG_OF_LIBFDT)
@@ -635,3 +637,18 @@ void reset_8xx_watchdog (volatile immap_t * immr)
 # endif /* CONFIG_LWMON */
 }
 #endif /* CONFIG_WATCHDOG */
+
+/*
+ * Initializes on-chip ethernet controllers.
+ * to override, implement board_eth_init()
+ */
+int cpu_eth_init(bd_t *bis)
+{
+#if defined(SCC_ENET) && defined(CONFIG_CMD_NET)
+       scc_initialize(bis);
+#endif
+#if defined(FEC_ENET)
+       fec_initialize(bis);
+#endif
+       return 0;
+}