[fix] after phyid addition, the init function should init correct phy.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user