diff options
author | Shaohui Xie <Shaohui.Xie@freescale.com> | 2013-03-25 07:33:17 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2013-05-14 16:00:26 -0500 |
commit | 944b6ccf1bc436546844536bf62ba62a906ed4e4 (patch) | |
tree | 552979469c916a4604ecdf101868805529efece8 /include/fm_eth.h | |
parent | 4e5c9261be576bf6419aa54bd1894d72dc275ec5 (diff) | |
download | u-boot-944b6ccf1bc436546844536bf62ba62a906ed4e4.tar.gz u-boot-944b6ccf1bc436546844536bf62ba62a906ed4e4.tar.bz2 u-boot-944b6ccf1bc436546844536bf62ba62a906ed4e4.zip |
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 'include/fm_eth.h')
-rw-r--r-- | include/fm_eth.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fm_eth.h b/include/fm_eth.h index 495765b933..8fcf172105 100644 --- a/include/fm_eth.h +++ b/include/fm_eth.h @@ -88,7 +88,7 @@ enum fm_eth_type { #define FM_TGEC_INFO_INITIALIZER(idx, n) \ { \ - FM_ETH_INFO_INITIALIZER(idx, CONFIG_SYS_FM1_TGEC_MDIO_ADDR) \ + FM_ETH_INFO_INITIALIZER(idx, CONFIG_SYS_FM2_TGEC_MDIO_ADDR) \ .index = idx, \ .num = n - 1, \ .type = FM_ETH_10G_E, \ @@ -96,7 +96,7 @@ enum fm_eth_type { .rx_port_id = RX_PORT_10G_BASE + n - 1, \ .tx_port_id = TX_PORT_10G_BASE + n - 1, \ .compat_offset = CONFIG_SYS_FSL_FM##idx##_OFFSET + \ - offsetof(struct ccsr_fman, memac[n-1]),\ + offsetof(struct ccsr_fman, memac[n-1+8]),\ } #else #define FM_DTSEC_INFO_INITIALIZER(idx, n) \ |