diff options
author | Jianhua Xie <jianhua.xie@freescale.com> | 2014-05-13 03:02:55 (GMT) |
---|---|---|
committer | Jose Rivera <German.Rivera@freescale.com> | 2014-05-13 14:48:36 (GMT) |
commit | 5d9548d18d19942ce8b42896d24b3c6d1d14a377 (patch) | |
tree | 2ea90c18735e18f2ab558aeddbcf7ab2d98ad7ab /drivers/net/ethernet/freescale/fman/inc | |
parent | 9c0b10890eeb8a6674cecc118a5c9cd9c178eedb (diff) | |
download | linux-fsl-qoriq-5d9548d18d19942ce8b42896d24b3c6d1d14a377.tar.xz |
fman: Add t10xx port constraint
There are two FMAN V3 version: FMAN_V3H and FMAN_V3L. Some hardware
resources are different between the two version. T1040, T1042,
T1020, T1022 belong to FMAN_V3L, there are 4 Offline/Host Command
Ports (O/H n) in FMAN_V3L. But there are 6 Offline/Host Command
Ports (O/H n) in FMAN_V3H.
This patch is correcting some definition like INTG_MAX_NUM_OF_FM,
FM_MAX_NUM_OF_10G_MACS, FM_MAX_NUM_OF_1G_MACS and etc. according
to (T1040RM Rev D, 04/2014)
Signed-off-by: Jianhua Xie <jianhua.xie@freescale.com>
Change-Id: I3f7fa9b70fad30b49cd76da57429ab8ad08b5176
Reviewed-on: http://git.am.freescale.net:8181/12241
Reviewed-by: Jiafei Pan <Jiafei.Pan@freescale.com>
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/fman/inc')
-rw-r--r-- | drivers/net/ethernet/freescale/fman/inc/integrations/T4240/dpaa_integration_ext.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fman/inc/integrations/T4240/dpaa_integration_ext.h b/drivers/net/ethernet/freescale/fman/inc/integrations/T4240/dpaa_integration_ext.h index 6fa8c25..dc3320f 100644 --- a/drivers/net/ethernet/freescale/fman/inc/integrations/T4240/dpaa_integration_ext.h +++ b/drivers/net/ethernet/freescale/fman/inc/integrations/T4240/dpaa_integration_ext.h @@ -188,6 +188,16 @@ typedef enum /***************************************************************************** FM INTEGRATION-SPECIFIC DEFINITIONS ******************************************************************************/ +/* Add T1 Port constraint:T1040, T1042, T1020, T1022 (T1040RM Rev D, 04/2014) */ +#ifdef CONFIG_FMAN_V3L +#define INTG_MAX_NUM_OF_FM 1 + +/* Ports defines */ +#define FM_MAX_NUM_OF_1G_MACS 5 +#define FM_MAX_NUM_OF_10G_MACS 0 +#define FM_MAX_NUM_OF_MACS (FM_MAX_NUM_OF_1G_MACS + FM_MAX_NUM_OF_10G_MACS) +#define FM_MAX_NUM_OF_OH_PORTS 4 +#else #define INTG_MAX_NUM_OF_FM 2 /* Ports defines */ @@ -195,6 +205,7 @@ typedef enum #define FM_MAX_NUM_OF_10G_MACS 2 #define FM_MAX_NUM_OF_MACS (FM_MAX_NUM_OF_1G_MACS + FM_MAX_NUM_OF_10G_MACS) #define FM_MAX_NUM_OF_OH_PORTS 6 +#endif #define FM_MAX_NUM_OF_1G_RX_PORTS FM_MAX_NUM_OF_1G_MACS #define FM_MAX_NUM_OF_10G_RX_PORTS FM_MAX_NUM_OF_10G_MACS |