diff options
author | Vipin Kumar <vipin.kumar@st.com> | 2012-03-26 00:09:56 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-04-04 10:47:21 -0500 |
commit | 13edd1706c56371dc6a67f7bef874f6d8b7af8eb (patch) | |
tree | 47d3dd15ce60a8bfc0ec7b6318f9764bcc6917eb /drivers/net/designware.h | |
parent | aa51005c3f7e517164fa000d68672041f6c4191f (diff) | |
download | u-boot-imx-13edd1706c56371dc6a67f7bef874f6d8b7af8eb.zip u-boot-imx-13edd1706c56371dc6a67f7bef874f6d8b7af8eb.tar.gz u-boot-imx-13edd1706c56371dc6a67f7bef874f6d8b7af8eb.tar.bz2 |
net/designware: Try configuring phy on each dw_eth_init
Phy autonegotiation works only when the ethernet cable is plugged in.
Since the phy was configured only at the init time, a plugged in cable
was necessary to initialize the phy properly.
This patch keeps a flag to check if the phy initialization has
succeeded, and calls configure_phy routine at every init if this flag
reports otherwise.
Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
Diffstat (limited to 'drivers/net/designware.h')
-rw-r--r-- | drivers/net/designware.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/designware.h b/drivers/net/designware.h index 42133b3..abf729d 100644 --- a/drivers/net/designware.h +++ b/drivers/net/designware.h @@ -238,6 +238,7 @@ struct dw_eth_dev { u32 duplex; u32 tx_currdescnum; u32 rx_currdescnum; + u32 phy_configured; u32 padding; struct dmamacdescr tx_mac_descrtable[CONFIG_TX_DESCR_NUM]; |