]> git.sur5r.net Git - u-boot/commitdiff
Moved initialization of ULI526X Ethernet driver to board code.
authorBen Warren <biggerbadderben@gmail.com>
Sat, 12 Jul 2008 06:42:19 +0000 (23:42 -0700)
committerBen Warren <biggerbadderben@gmail.com>
Wed, 27 Aug 2008 05:17:45 +0000 (22:17 -0700)
The only board using this driver is the Freescale MPC8610HPCD board.
Removed initialization for the driver from net/eth.c

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
board/freescale/mpc8610hpcd/mpc8610hpcd.c
net/eth.c

index c9dde4d1a39ed4914b268f5faa9e469f62dde637..af79fc2c67a5774d986844214d7336c205ab85b6 100644 (file)
@@ -519,3 +519,13 @@ get_board_sys_clk(ulong dummy)
 
        return val;
 }
+
+extern int uli526x_initialize(bd_t *);
+
+int board_eth_init(bd_t *bis)
+{
+#if defined(CONFIG_ULI526)
+       uli526x_initialize(bis);
+#endif
+       return 0;
+}
index 1db9ab5fe80d253c39c6b6044823a85699081196..0ad9907f83870e9a89c051ef6cf7a3b24d69d334 100644 (file)
--- a/net/eth.c
+++ b/net/eth.c
@@ -65,7 +65,6 @@ extern int rtl8169_initialize(bd_t*);
 extern int scc_initialize(bd_t*);
 extern int skge_initialize(bd_t*);
 extern int tsi108_eth_initialize(bd_t*);
-extern int uli526x_initialize(bd_t *);
 extern int npe_initialize(bd_t *);
 extern int uec_initialize(int);
 extern int at91sam9_eth_initialize(bd_t *);
@@ -253,9 +252,6 @@ int eth_initialize(bd_t *bis)
 #if defined(CONFIG_TSI108_ETH)
        tsi108_eth_initialize(bis);
 #endif
-#if defined(CONFIG_ULI526X)
-       uli526x_initialize(bis);
-#endif
 #if defined(CONFIG_RTL8139)
        rtl8139_initialize(bis);
 #endif