Skip to contentSkip to conversation

powerpc:t4240rdb: Disable the non-existent ethernet port on T4240RDB

PATCH New ying.zhang at freescale.com 2 participants 3 messages Apr 18, 2016 – May 25, 2016 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 powerpc:t4240rdb: Disable the non-existent ethernet port on T4240RDB

From: Ying Zhang <[email protected]>

There are 12 ethernet port on T4240RDB, but there need to set 16 MAC addressed for ethernets.

There need to disable non-existent ethernet ports in U-boot

---
[changed from v1]:
--- update the title.

 board/freescale/t4rdb/eth.c | 5 +++++
 1 file changed, 5 insertions(+)
board/freescale/t4rdb/eth.c +5 -0
index e563a61..ae2451e 100644
@@ -77,6 +77,9 @@ int board_eth_init(bd_t *bis)
 		puts("Invalid SerDes1 protocol for T4240RDB\n");
 	}
 
+	fm_disable_port(FM1_DTSEC5);
+	fm_disable_port(FM1_DTSEC6);
+
 	for (i = FM1_DTSEC1; i < FM1_DTSEC1 + CONFIG_SYS_NUM_FM1_DTSEC; i++) {
 		interface = fm_info_get_enet_if(i);
 		switch (interface) {
@@ -115,6 +118,8 @@ int board_eth_init(bd_t *bis)
 		puts("Invalid SerDes2 protocol for T4240RDB\n");
 	}
 
+	fm_disable_port(FM2_DTSEC5);
+	fm_disable_port(FM2_DTSEC6);
 	for (i = FM2_DTSEC1; i < FM2_DTSEC1 + CONFIG_SYS_NUM_FM2_DTSEC; i++) {
 		interface = fm_info_get_enet_if(i);
 		switch (interface) {
Signature · 1 line
2.1.0.27.g96db324
#1 lore raw

PATCH v2 2/2 powerpc:t4240: MAC9 and MAC10 should not be identified as 1G interface in some case

From: Ying Zhang <[email protected]>

When using rcw protocols to support 10G on MAC9 and MAC10, these MACs should not be identified as 1G interface, otherwise, one MAC will be listed as two Ethernet ports. For example, MAC9 will be listed as FM1 at TGEC1 and FM1 at DTSEC9.

---
[changed from v1]:
--- update the commit message.

 drivers/net/fm/t4240.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/fm/t4240.c +1 -1
index ae5aca4..70887fa 100644
@@ -74,7 +74,7 @@ phy_interface_t fman_port_enet_if(enum fm_port port)
 	if ((port == FM1_DTSEC9 || port == FM1_DTSEC10) &&
 	    ((is_serdes_configured(XFI_FM1_MAC9)) ||
 	     (is_serdes_configured(XFI_FM1_MAC10))))
-		return PHY_INTERFACE_MODE_XGMII;
+		return PHY_INTERFACE_MODE_NONE;
 
 	if ((port == FM2_10GEC1 || port == FM2_10GEC2) &&
 	    ((is_serdes_configured(XAUI_FM2_MAC9))	||
Signature · 1 line
2.1.0.27.g96db324
#2 lore raw

PATCH v2 2/2 powerpc:t4240: MAC9 and MAC10 should not be identified as 1G interface in some case

Quoted 7 lines · ying.zhang at freescale.com

From: Ying Zhang <[email protected]>

When using rcw protocols to support 10G on MAC9 and MAC10, these MACs should not be identified as 1G interface, otherwise, one MAC will be listed as two Ethernet ports. For example, MAC9 will be listed as FM1 at TGEC1 and FM1 at DTSEC9.

Quoted 7 lines

---
[changed from v1]:
--- update the commit message.

 drivers/net/fm/t4240.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-mpc85xx master branch, awaiting upstream.

Thanks.

York