summaryrefslogtreecommitdiff
path: root/net/eth.c
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2009-06-24 11:31:38 +0800
committerFred Fan <r01011@freescale.com>2009-09-10 17:02:19 +0800
commit23b6527003ca6a12d7872e9e552160041d8b6285 (patch)
tree9abe3d5483436632fceb0cfcc51c64c9b443dc67 /net/eth.c
parentc6e205a9fde82e69608850c24686cc972cf258f1 (diff)
downloadu-boot-imx-23b6527003ca6a12d7872e9e552160041d8b6285.zip
u-boot-imx-23b6527003ca6a12d7872e9e552160041d8b6285.tar.gz
u-boot-imx-23b6527003ca6a12d7872e9e552160041d8b6285.tar.bz2
ENGR00113611: Add FEC support for BBG2.
Add FEC support for BBG2. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'net/eth.c')
-rw-r--r--net/eth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/eth.c b/net/eth.c
index bb8b6e4..67f6646 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -201,8 +201,13 @@ int eth_initialize(bd_t *bis)
#endif
/* Try board-specific initialization first. If it fails or isn't
* present, try the cpu-specific initialization */
+#ifdef CONFIG_ETH_PRIME
+ board_eth_init(bis);
+ cpu_eth_init(bis);
+#else
if (board_eth_init(bis) < 0)
cpu_eth_init(bis);
+#endif
#if defined(CONFIG_DB64360) || defined(CONFIG_CPCI750)
mv6436x_eth_initialize(bis);