[fix] after phyid addition, the init function should init correct phy.

This commit is contained in:
Frantisek Burian
2014-12-18 21:26:59 +01:00
parent bb8980efc6
commit cf6d8d7235
2 changed files with 5 additions and 5 deletions

View File

@@ -200,10 +200,10 @@ void eth_start(void)
*
* @param[in] clock enum eth_clk Core clock speed
*/
void eth_init(enum eth_clk clock)
void eth_init(uint8_t phy, enum eth_clk clock)
{
ETH_MACMIIAR = clock;
phy_reset();
phy_reset(phy);
ETH_MACCR = ETH_MACCR_CSTF | ETH_MACCR_FES | ETH_MACCR_DM |
ETH_MACCR_APCS | ETH_MACCR_RD;