summaryrefslogtreecommitdiff
path: root/include/netdev.h
diff options
context:
space:
mode:
authorBen Warren <biggerbadderben@gmail.com>2008-08-31 21:41:08 -0700
committerBen Warren <biggerbadderben@gmail.com>2008-09-02 21:18:16 -0700
commit0b252f50ae218ae15bfb63af44227972686ebc56 (patch)
tree98e5a13a7c1574f7fa1061fa9dc97293d7e014a3 /include/netdev.h
parent02d69891d95ee76b0e86e1715a4dc0b964a57cb7 (diff)
downloadu-boot-imx-0b252f50ae218ae15bfb63af44227972686ebc56.zip
u-boot-imx-0b252f50ae218ae15bfb63af44227972686ebc56.tar.gz
u-boot-imx-0b252f50ae218ae15bfb63af44227972686ebc56.tar.bz2
Moved initialization of RTL8139 Ethernet controller to board_eth_init()
Affected boards: hidden_dragon MPC8544DS MPC8610HPCN R2DPLUS TB0229 Removed initialization of the driver from net/eth.c Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'include/netdev.h')
-rw-r--r--include/netdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/netdev.h b/include/netdev.h
index 954de39..b333755 100644
--- a/include/netdev.h
+++ b/include/netdev.h
@@ -46,6 +46,7 @@ int greth_initialize(bd_t *bis);
int macb_eth_initialize(int id, void *regs, unsigned int phy_addr);
int mcdmafec_initialize(bd_t *bis);
int mcffec_initialize(bd_t *bis);
+int rtl8139_initialize(bd_t *bis);
int rtl8169_initialize(bd_t *bis);
int skge_initialize(bd_t *bis);
int uli526x_initialize(bd_t *bis);
@@ -57,6 +58,9 @@ int uli526x_initialize(bd_t *bis);
static inline int pci_eth_init(bd_t *bis)
{
int num = 0;
+#if defined(CONFIG_RTL8139)
+ num += rtl8139_initialize(bis);
+#endif
#if defined(CONFIG_RTL8169)
num += rtl8169_initialize(bis);
#endif