summaryrefslogtreecommitdiff
path: root/include/miiphy.h
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2005-11-30 18:06:04 +0100
committerMarian Balakowicz <m8@semihalf.com>2005-11-30 18:06:04 +0100
commitd9785c14bf489908b8e39b1e20f0c14cb8fcda76 (patch)
treec5105eb907ce0cb7b353619007f34b4c86879f30 /include/miiphy.h
parent0a69b26ed6fe3184cab86872589c27b076e6cb8e (diff)
downloadu-boot-imx-d9785c14bf489908b8e39b1e20f0c14cb8fcda76.zip
u-boot-imx-d9785c14bf489908b8e39b1e20f0c14cb8fcda76.tar.gz
u-boot-imx-d9785c14bf489908b8e39b1e20f0c14cb8fcda76.tar.bz2
Fix miiphy global data initialization (problem on 4xx boards when no
ethaddr is assigned). Initialization moved from miiphy_register() to eth_initialize(). Based on initial patch for 4xx platform by Matthias Fuchs.
Diffstat (limited to 'include/miiphy.h')
-rw-r--r--include/miiphy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/miiphy.h b/include/miiphy.h
index 3c6ee77..71716b0 100644
--- a/include/miiphy.h
+++ b/include/miiphy.h
@@ -53,6 +53,8 @@ int miiphy_duplex(char *devname, unsigned char addr);
int miiphy_link(char *devname, unsigned char addr);
#endif
+void miiphy_init(void);
+
void miiphy_register(char *devname,
int (* read)(char *devname, unsigned char addr,
unsigned char reg, unsigned short *value),