hw25: swap mac addresses to reflect port numbering
This commit is contained in:
parent
088d4c7ddf
commit
e8475b4f80
|
|
@ -1141,11 +1141,12 @@ int board_eth_init(bd_t *bis)
|
|||
that is controlled via control module register sma2. */
|
||||
writel(REG_CONTROL_MODULE_SMA2_RMII2_CRS_DV_MODE_SEL, REG_CONTROL_MODULE_SMA2);
|
||||
|
||||
/* Assign first MAC to lower port/2nd interface */
|
||||
bd_get_mac(0, mac_addr0, sizeof(mac_addr0));
|
||||
set_mac_address(0, mac_addr0);
|
||||
|
||||
bd_get_mac(1, mac_addr1, sizeof(mac_addr1));
|
||||
set_mac_address(1, mac_addr1);
|
||||
|
||||
set_mac_address(0, mac_addr1);
|
||||
set_mac_address(1, mac_addr0);
|
||||
|
||||
writel(RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE, &cdev->miisel);
|
||||
cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RMII;
|
||||
|
|
|
|||
Loading…
Reference in New Issue