summaryrefslogtreecommitdiff
path: root/drivers/net/fm/eth.c
diff options
context:
space:
mode:
authorShaohui Xie <Shaohui.Xie@freescale.com>2013-03-25 07:33:17 +0000
committerAndy Fleming <afleming@freescale.com>2013-05-14 16:00:26 -0500
commit944b6ccf1bc436546844536bf62ba62a906ed4e4 (patch)
tree552979469c916a4604ecdf101868805529efece8 /drivers/net/fm/eth.c
parent4e5c9261be576bf6419aa54bd1894d72dc275ec5 (diff)
downloadu-boot-imx-944b6ccf1bc436546844536bf62ba62a906ed4e4.zip
u-boot-imx-944b6ccf1bc436546844536bf62ba62a906ed4e4.tar.gz
u-boot-imx-944b6ccf1bc436546844536bf62ba62a906ed4e4.tar.bz2
Fman/t4240: some fix for 10G XAUI
1. fix 10G mac offset by plus 8; 2. add second 10G port info for FM1 & FM2 when init ethernet info; 3. fix 10G lanes name to match lane protocol table; Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'drivers/net/fm/eth.c')
-rw-r--r--drivers/net/fm/eth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c
index 54b142f..9b139ee 100644
--- a/drivers/net/fm/eth.c
+++ b/drivers/net/fm/eth.c
@@ -568,6 +568,8 @@ static int fm_eth_init_mac(struct fm_eth *fm_eth, struct ccsr_fman *reg)
num = fm_eth->num;
#ifdef CONFIG_SYS_FMAN_V3
+ if (fm_eth->type == FM_ETH_10G_E)
+ num += 8;
base = &reg->memac[num].fm_memac;
phyregs = &reg->memac[num].fm_memac_mdio;
#else