aboutsummaryrefslogtreecommitdiff
path: root/lib_blackfin
diff options
context:
space:
mode:
authorLuigi 'Comio' Mantellini2009-10-10 12:42:21 +0200
committerBen Warren2009-10-10 23:16:53 -0700
commit310cecb8ccdbc8a9be580e75b2fd362179d78535 (patch)
tree8aafcce0beeec078bb6c36cfdc9e27481b394938 /lib_blackfin
parent4ba31ab33ac824635fcb49ac609070a9ebcab7f0 (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_blackfin')
-rw-r--r--lib_blackfin/board.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c
index 1053f694cb4..3670d2caa40 100644
--- a/lib_blackfin/board.c
+++ b/lib_blackfin/board.c
@@ -26,6 +26,10 @@
#include <nand.h> /* cannot even include nand.h if it isnt configured */
#endif
+#ifdef CONFIG_BITBANGMII
+#include <miiphy.h>
+#endif
+
#if defined(CONFIG_POST)
#include <post.h>
int post_flag;
@@ -270,6 +274,9 @@ void board_init_f(ulong bootflag)
static void board_net_init_r(bd_t *bd)
{
+#ifdef CONFIG_BITBANGMII
+ bb_miiphy_init();
+#endif
#ifdef CONFIG_CMD_NET
uchar enetaddr[6];
char *s;