summaryrefslogtreecommitdiff
path: root/cpu/mpc83xx/cpu.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-07-09 23:22:54 +0200
committerWolfgang Denk <wd@denx.de>2008-07-09 23:22:54 +0200
commit9692cab76f7b7891f71c8a9b189465cd3bd68ef0 (patch)
treed84348280c2993329787ef7881ada85241d2f61b /cpu/mpc83xx/cpu.c
parent2caea1ebee1fb20e1b229f1f821225829fb87f0e (diff)
parent63676841ca2d603b13765f3f7b72ff1a61c23f90 (diff)
downloadu-boot-imx-9692cab76f7b7891f71c8a9b189465cd3bd68ef0.zip
u-boot-imx-9692cab76f7b7891f71c8a9b189465cd3bd68ef0.tar.gz
u-boot-imx-9692cab76f7b7891f71c8a9b189465cd3bd68ef0.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot-net
Diffstat (limited to 'cpu/mpc83xx/cpu.c')
-rw-r--r--cpu/mpc83xx/cpu.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/cpu/mpc83xx/cpu.c b/cpu/mpc83xx/cpu.c
index cc03f8a..52e4476 100644
--- a/cpu/mpc83xx/cpu.c
+++ b/cpu/mpc83xx/cpu.c
@@ -357,3 +357,23 @@ int dma_xfer(void *dest, u32 count, void *src)
return ((int)dma_check());
}
#endif /*CONFIG_DDR_ECC*/
+
+#ifdef CONFIG_TSEC_ENET
+/* Default initializations for TSEC controllers. To override,
+ * create a board-specific function called:
+ * int board_eth_init(bd_t *bis)
+ */
+
+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
+ return 0;
+}
+#endif