diff mbox

[U-Boot,1/2] board/t4240rdb: Disable the non-existent ethernet port on T4240RDB

Message ID 1460701149-36278-1-git-send-email-ying.zhang@freescale.com
State Accepted
Commit d1fc8ed485cbf44434a9bc2a02ddf2a94f2183c1
Delegated to: York Sun
Headers show

Commit Message

ying.zhang@freescale.com April 15, 2016, 6:19 a.m. UTC
From: Ying Zhang <b40530@freescale.com>

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

Signed-off-by: Ying Zhang <b40530@freescale.com>
---
 board/freescale/t4rdb/eth.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/board/freescale/t4rdb/eth.c b/board/freescale/t4rdb/eth.c
index e563a61..ae2451e 100644
--- a/board/freescale/t4rdb/eth.c
+++ b/board/freescale/t4rdb/eth.c
@@ -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) {