summaryrefslogtreecommitdiff
path: root/net/eth.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-07-09 23:27:13 +0000
committerwdenk <wdenk>2004-07-09 23:27:13 +0000
commit0ac6f8b7498d3608bd1de2280a014e9e23d7b1f2 (patch)
treede6ad6c1ee05c1ebcee774a2e8c772e7b2e57586 /net/eth.c
parent262381329b87511ed862cde139a3a1ff49e9d7eb (diff)
Patch by Jon Loeliger, 17 June 2004:
Completion of the 8540ADS/8560ADS updates: Fix some PCI and Rapid I/O memory maps, Initialize both TSEC 1 and 2, Initialize SDRAM Update MAINTAINER for 85xx boards and README.mpc85xxads
Diffstat (limited to 'net/eth.c')
-rw-r--r--net/eth.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/net/eth.c b/net/eth.c
index 08769aef91c..7059123b4ee 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -51,7 +51,7 @@ extern int rtl8139_initialize(bd_t*);
extern int rtl8169_initialize(bd_t*);
extern int scc_initialize(bd_t*);
extern int skge_initialize(bd_t*);
-extern int tsec_initialize(bd_t*);
+extern int tsec_initialize(bd_t*, int);
static struct eth_device *eth_devices, *eth_current;
@@ -147,8 +147,14 @@ int eth_initialize(bd_t *bis)
#if defined(CONFIG_SK98)
skge_initialize(bis);
#endif
-#ifdef CONFIG_TSEC_ENET
- tsec_initialize(bis);
+#if defined(CONFIG_MPC85XX_TSEC1)
+ tsec_initialize(bis, 0);
+#endif
+#if defined(CONFIG_MPC85XX_TSEC2)
+ tsec_initialize(bis, 1);
+#endif
+#if defined(CONFIG_MPC85XX_FEC)
+ tsec_initialize(bis, 2);
#endif
#if defined(CONFIG_AU1X00)
au1x00_enet_initialize(bis);