[qca-ssdk]: Add MINI SSDK configs
Change-Id: I6776b02b81a50778a8a026948a85d1052a57ecb9
Signed-off-by: Luo Jie <luoj@codeaurora.org>
diff --git a/config b/config
index c917ed4..9203d95 100755
--- a/config
+++ b/config
@@ -158,7 +158,9 @@
FAL=TRUE
#CHIP_TYPE can be defined as ATHENA, GARUDA, SHIVA, HORUS, ISIS, ISISC, DESS, HPPE, CPPE and ALL_CHIP(ALL_CHIP means GARUDA, SHIVA, HORUS, ISIS, ISISC, DESS and HPPE CPPE)
+ifndef CHIP_TYPE
CHIP_TYPE=ALL_CHIP
+endif
#UK_IF=FALSE or not define UK_IF, UK_IF will not be included in SSDK
#when UK_IF=TRUE one of UK_NETLINK,UK_IOCTL must be defined as TRUE
@@ -178,27 +180,20 @@
#IN_X=FALSE or not define IN_X, X will not be included in SSDK
IN_ACL=TRUE
IN_FDB=TRUE
-IN_FDB_MINI=FALSE
IN_IGMP=TRUE
IN_LEAKY=TRUE
IN_LED=TRUE
IN_MIB=TRUE
IN_MIRROR=TRUE
IN_MISC=TRUE
-IN_MISC_MINI=FALSE
IN_PORTCONTROL=TRUE
-IN_PORTCONTROL_MINI=FALSE
IN_PORTVLAN=TRUE
-IN_PORTVLAN_MINI=FALSE
IN_QOS=TRUE
-IN_QOS_MINI=FALSE
IN_RATE=TRUE
IN_STP=TRUE
IN_VLAN=TRUE
-IN_VLAN_MINI=FALSE
IN_REDUCED_ACL=FALSE
IN_COSMAP=TRUE
-IN_COSMAP_MINI=FALSE
IN_IP=TRUE
IN_NAT=TRUE
IN_FLOW=TRUE
@@ -219,16 +214,29 @@
endif
IN_INTERFACECONTROL=TRUE
IN_MACBLOCK=FALSE
-IN_MALIBU_PHY=TRUE
+#The PHY CHIP defined according to the switch CHIP
ifeq (ALL_CHIP, $(CHIP_TYPE))
IN_AQUANTIA_PHY=TRUE
IN_QCA803X_PHY=TRUE
IN_QCA808X_PHY=TRUE
+IN_MALIBU_PHY=TRUE
IN_SFP_PHY=TRUE
+else ifeq (HPPE, $(CHIP_TYPE))
+IN_AQUANTIA_PHY=TRUE
+IN_QCA803X_PHY=TRUE
+IN_QCA808X_PHY=TRUE
+IN_SFP_PHY=TRUE
+IN_MALIBU_PHY=TRUE
+else ifeq (CPPE, $(CHIP_TYPE))
+IN_QCA808X_PHY=TRUE
+IN_MALIBU_PHY=TRUE
+else ifeq (DESS, $(CHIP_TYPE))
+IN_MALIBU_PHY=TRUE
else
IN_QCA803X_PHY=FALSE
IN_QCA808X_PHY=FALSE
IN_AQUANTIA_PHY=FALSE
+IN_MALIBU_PHY=FALSE
IN_SFP_PHY=FALSE
endif
ifeq ($(SFE_FEATURE), enable)
@@ -236,16 +244,21 @@
else
IN_SFE=FALSE
endif
+#QCA808X PHY features
ifeq ($(IN_QCA808X_PHY), TRUE)
IN_PHY_I2C_MODE=TRUE
-else
-IN_PHY_I2C_MODE=FALSE
-endif
ifeq ($(PTP_FEATURE), enable)
IN_PTP=TRUE
else
IN_PTP=FALSE
endif
+else
+IN_PHY_I2C_MODE=FALSE
+endif
+#IN_PHY_I2C_MODE depends on IN_SFP_PHY
+ifeq ($(IN_PHY_I2C_MODE), TRUE)
+IN_SFP_PHY=TRUE
+endif
IN_VSI=TRUE
IN_CTRLPKT=TRUE
IN_SERVCODE=TRUE
@@ -253,6 +266,36 @@
IN_SHAPER=TRUE
IN_POLICER=TRUE
IN_UNIPHY=TRUE
+#MINI SSDK enabled
+ifeq ($(MINI_SSDK), enable)
+IN_FDB_MINI=TRUE
+IN_MISC_MINI=TRUE
+IN_PORTCONTROL_MINI=TRUE
+IN_QOS_MINI=TRUE
+IN_COSMAP_MINI=TRUE
+IN_PORTVLAN_MINI=TRUE
+IN_VLAN_MINI=TRUE
+IN_VSI_MINI=TRUE
+IN_BM_MINI=TRUE
+IN_SHAPER_MINI=TRUE
+IN_POLICER_MINI=TRUE
+IN_FLOW_MINI=TRUE
+IN_QM_MINI=TRUE
+IN_UNIPHY_MINI=TRUE
+#disable modules for MINI HPPE/CPPE
+ifneq (, $(filter HPPE CPPE, $(CHIP_TYPE)))
+IN_SERVCODE=FALSE
+IN_PPPOE=FALSE
+IN_NAT=FALSE
+IN_IP=FALSE
+IN_COSMAP=FALSE
+IN_RATE=FALSE
+IN_IGMP=FALSE
+IN_LEAKY=FALSE
+IN_LED=FALSE
+IN_INTERFACECONTROL=FALSE
+endif
+endif
ifneq ($(HK_CHIP), enable)
CHIP_TYPE=NONHK_CHIP
endif