From e8475b4f809c25f22e2be74b98661568ac8c06e0 Mon Sep 17 00:00:00 2001 From: Rene Straub Date: Tue, 15 Dec 2020 09:28:30 +0100 Subject: [PATCH] hw25: swap mac addresses to reflect port numbering --- board/nm/hw25/board.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/board/nm/hw25/board.c b/board/nm/hw25/board.c index 24266069b4..d938737a96 100644 --- a/board/nm/hw25/board.c +++ b/board/nm/hw25/board.c @@ -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;