Skip to contentSkip to conversation

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

PATCH New ying.zhang22455 at nxp.com 3 participants 3 messages Apr 21, 2016 – May 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 powerpc:t4240rdb: Disable the non-existent ethernet ports on T4240RDB

From: Ying Zhang <[email protected]>

Disable the non-existent ethernet ports on T4240RDB:FM1_DTSEC5, FM1_DTSEC6, FM2_DTSEC5 and FM2_DTSEC6.

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

 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
#2 lore raw

PATCH v3 1/2 powerpc:t4240rdb: Disable the non-existent ethernet ports on T4240RDB

In reply to ying.zhang22455 at nxp.com
Quoted 6 lines · On 04/20/2016 11:33 PM, ying.zhang22455 at nxp.com wrote:

From: Ying Zhang <[email protected]>

Disable the non-existent ethernet ports on T4240RDB:FM1_DTSEC5, FM1_DTSEC6, FM2_DTSEC5 and FM2_DTSEC6.

Quoted 8 lines

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

 board/freescale/t4rdb/eth.c | 5 +++++
 1 file changed, 5 insertions(+)

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

Thanks.

York