aboutsummaryrefslogtreecommitdiffstats
path: root/cpu/mpc512x
diff options
context:
space:
mode:
authorBen Warren <biggerbadderben@gmail.com>2008-08-31 10:36:38 -0700
committerBen Warren <biggerbadderben@gmail.com>2008-09-02 21:18:17 -0700
commita0aad08f9427ac00218bdb2cb649833ce6ec9b8d (patch)
treef2c0ef44d0acd0f895ab75462835ba9a6dd43a4f /cpu/mpc512x
parent8218bd2aa68820b878a8413493ae17fd8d21f944 (diff)
downloadu-boot-midas-a0aad08f9427ac00218bdb2cb649833ce6ec9b8d.tar.gz
u-boot-midas-a0aad08f9427ac00218bdb2cb649833ce6ec9b8d.tar.bz2
u-boot-midas-a0aad08f9427ac00218bdb2cb649833ce6ec9b8d.zip
Moved initialization of MPC512x_FEC Ethernet driver to CPU directory
Added a cpu_eth_init() function to MPC512x CPU directory and removed code from net/eth.c Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'cpu/mpc512x')
-rw-r--r--cpu/mpc512x/cpu.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpu/mpc512x/cpu.c b/cpu/mpc512x/cpu.c
index 1f39ac4c17..d432d995a7 100644
--- a/cpu/mpc512x/cpu.c
+++ b/cpu/mpc512x/cpu.c
@@ -30,6 +30,7 @@
#include <common.h>
#include <command.h>
#include <mpc512x.h>
+#include <netdev.h>
#include <asm/processor.h>
#if defined(CONFIG_OF_LIBFDT)
@@ -195,3 +196,15 @@ void ft_cpu_setup(void *blob, bd_t *bd)
#endif
}
#endif
+
+#ifdef CONFIG_MPC512x_FEC
+/* Default initializations for FEC controllers. To override,
+ * create a board-specific function called:
+ * int board_eth_init(bd_t *bis)
+ */
+
+int cpu_eth_init(bd_t *bis)
+{
+ return mpc512x_fec_initialize(bis);
+}
+#endif