summaryrefslogtreecommitdiff
path: root/cpu/mcf523x
diff options
context:
space:
mode:
authorBen Warren <biggerbadderben@gmail.com>2008-08-26 22:16:25 -0700
committerBen Warren <biggerbadderben@gmail.com>2008-08-26 22:16:25 -0700
commit86882b80771309bceb11c6accfd7f6f90ade8bfc (patch)
tree0004ca8c6e9c31b0ee46f0dd07f49e01711e75ef /cpu/mcf523x
parentb31da88b9c160d80d42a59cbbb31e24f27184d5c (diff)
downloadu-boot-imx-86882b80771309bceb11c6accfd7f6f90ade8bfc.zip
u-boot-imx-86882b80771309bceb11c6accfd7f6f90ade8bfc.tar.gz
u-boot-imx-86882b80771309bceb11c6accfd7f6f90ade8bfc.tar.bz2
Moved initialization of MCFFEC Ethernet driver to CPU directory
Added a cpu_eth_init() function to coldfire CPU directories and removed code from net/eth.c Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'cpu/mcf523x')
-rw-r--r--cpu/mcf523x/cpu.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpu/mcf523x/cpu.c b/cpu/mcf523x/cpu.c
index f0d954b..8d2152d 100644
--- a/cpu/mcf523x/cpu.c
+++ b/cpu/mcf523x/cpu.c
@@ -107,3 +107,17 @@ int watchdog_init(void)
return (0);
}
#endif /* CONFIG_WATCHDOG */
+
+#if defined(CONFIG_MCFFEC)
+/* Default initializations for MCFFEC controllers. To override,
+ * create a board-specific function called:
+ * int board_eth_init(bd_t *bis)
+ */
+
+extern int mcffec_initialize(bd_t*);
+
+int cpu_eth_init(bd_t *bis)
+{
+ return mcffec_initialize(bis);
+}
+#endif