summaryrefslogtreecommitdiff
path: root/cpu/mpc86xx/cpu.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-09-03 23:07:41 +0200
committerWolfgang Denk <wd@denx.de>2008-09-03 23:07:41 +0200
commit53c987f51391c1a221b0468aa0f37a3a6ce9181a (patch)
tree62bd19ba9bcf8a5062e874ab53877b53a434d6f7 /cpu/mpc86xx/cpu.c
parent1711f3bd16d1c5e9d17b4c0198b426d86999781b (diff)
parentce42d166ac3c55ebf1e7c2f9707a79acefa006be (diff)
downloadu-boot-imx-53c987f51391c1a221b0468aa0f37a3a6ce9181a.zip
u-boot-imx-53c987f51391c1a221b0468aa0f37a3a6ce9181a.tar.gz
u-boot-imx-53c987f51391c1a221b0468aa0f37a3a6ce9181a.tar.bz2
Merge branch 'master' of ssh://10.10.0.7/home/wd/git/u-boot/master
Diffstat (limited to 'cpu/mpc86xx/cpu.c')
-rw-r--r--cpu/mpc86xx/cpu.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/cpu/mpc86xx/cpu.c b/cpu/mpc86xx/cpu.c
index ecea5b0..3a75af7 100644
--- a/cpu/mpc86xx/cpu.c
+++ b/cpu/mpc86xx/cpu.c
@@ -28,6 +28,7 @@
#include <asm/cache.h>
#include <asm/mmu.h>
#include <mpc86xx.h>
+#include <tsec.h>
#include <asm/fsl_law.h>
@@ -305,28 +306,15 @@ void mpc86xx_reginfo(void)
}
-#ifdef CONFIG_TSEC_ENET
-/* Default initializations for TSEC controllers. To override,
- * create a board-specific function called:
- * int board_eth_init(bd_t *bis)
+/*
+ * Initializes on-chip ethernet controllers.
+ * to override, implement board_eth_init()
*/
-
-extern int tsec_initialize(bd_t * bis, int index, char *devname);
-
int cpu_eth_init(bd_t *bis)
{
-#if defined(CONFIG_TSEC1)
- tsec_initialize(bis, 0, CONFIG_TSEC1_NAME);
-#endif
-#if defined(CONFIG_TSEC2)
- tsec_initialize(bis, 1, CONFIG_TSEC2_NAME);
-#endif
-#if defined(CONFIG_TSEC3)
- tsec_initialize(bis, 2, CONFIG_TSEC3_NAME);
-#endif
-#if defined(CONFIG_TSEC4)
- tsec_initialize(bis, 3, CONFIG_TSEC4_NAME);
+#if defined(CONFIG_TSEC_ENET)
+ tsec_standard_init(bis);
#endif
+
return 0;
}
-#endif /* CONFIG_TSEC_ENET */