summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/freescale/fman/Kconfig11
-rw-r--r--drivers/net/ethernet/freescale/fman/inc/integrations/T4240/dpaa_integration_ext.h11
2 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fman/Kconfig b/drivers/net/ethernet/freescale/fman/Kconfig
index dc47468..80069af 100644
--- a/drivers/net/ethernet/freescale/fman/Kconfig
+++ b/drivers/net/ethernet/freescale/fman/Kconfig
@@ -32,6 +32,17 @@ config FMAN_T4240
endchoice
endmenu
+config FMAN_V3L
+ depends on FMAN_T4240
+ bool "FMAN_V3L like T1040, T1042, T1020, T1022"
+ default n
+ ---help---
+ There are two FMAN V3 version: FMAN_V3H and FMAN_V3L.
+ 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.
+ Say "Y" if chips are T1040, T1042, T1020, T1022 family.
config FMAN_DISABLE_OH_TO_REUSE_RESOURCES
depends on FMAN_RESOURCE_ALLOCATION_ALGORITHM
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