8xxx: Refactored common cpu specific code for 85xx/86xx into one file.
[oweals/u-boot.git] / cpu / leon2 / cpu.c
index 1c1e24b16cd8c3ec1f92d89d8e00fdfb78d4e82d..d6e23b129c49491e12546951e3a46dd922efce2f 100644 (file)
@@ -25,6 +25,7 @@
 #include <common.h>
 #include <watchdog.h>
 #include <command.h>
+#include <netdev.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -56,3 +57,10 @@ int do_reset(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 }
 
 /* ------------------------------------------------------------------------- */
+
+#ifdef CONFIG_GRETH
+int cpu_eth_init(bd_t *bis)
+{
+       return greth_initialize(bis);
+}
+#endif