diff options
author | Luigi 'Comio' Mantellini | 2009-10-10 12:42:21 +0200 |
---|---|---|
committer | Ben Warren | 2009-10-10 23:16:53 -0700 |
commit | 310cecb8ccdbc8a9be580e75b2fd362179d78535 (patch) | |
tree | 8aafcce0beeec078bb6c36cfdc9e27481b394938 /lib_mips | |
parent | 4ba31ab33ac824635fcb49ac609070a9ebcab7f0 (diff) |
Add bb_miiphy_init call before any ethernet bring-up code.
Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'lib_mips')
-rw-r--r-- | lib_mips/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib_mips/board.c b/lib_mips/board.c index f62a46a1726..b2d113e870a 100644 --- a/lib_mips/board.c +++ b/lib_mips/board.c @@ -33,6 +33,10 @@ #include <onenand_uboot.h> #include <spi.h> +#ifdef CONFIG_BITBANGMII +#include <miiphy.h> +#endif + DECLARE_GLOBAL_DATA_PTR; #if ( ((CONFIG_ENV_ADDR+CONFIG_ENV_SIZE) < CONFIG_SYS_MONITOR_BASE) || \ @@ -407,6 +411,9 @@ void board_init_r (gd_t *id, ulong dest_addr) misc_init_r (); #endif +#ifdef CONFIG_BITBANGMII + bb_miiphy_init(); +#endif #if defined(CONFIG_CMD_NET) #if defined(CONFIG_NET_MULTI) puts ("Net: "); |