Răsfoiți Sursa

qcacmn: Initial changes for QCN6432 bringup in Common dev to DP

Add device Id and target type checks for qcn6432 target
compilation.

Change-Id: I4bc0fe66f9da9fb8be26fca8dc23524a4fb54009
CRs-Fixed: 3351564
Kannan Saravanan 2 ani în urmă
părinte
comite
20a57094a3
3 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 2 0
      dp/inc/cdp_txrx_cmn_reg.h
  2. 2 0
      dp/wifi3.0/dp_rings_main.c
  3. 3 0
      dp/wifi3.0/monitor/dp_mon.c

+ 2 - 0
dp/inc/cdp_txrx_cmn_reg.h

@@ -141,6 +141,7 @@ static inline int cdp_get_arch_type_from_devid(uint16_t devid)
 	case QCA5332_DEVICE_ID:
 	case MANGO_DEVICE_ID:
 	case PEACH_DEVICE_ID:
+	case QCN6432_DEVICE_ID:
 		return CDP_ARCH_TYPE_BE;
 	case RHINE_DP:
 		return CDP_ARCH_TYPE_RH;
@@ -176,6 +177,7 @@ ol_txrx_soc_handle cdp_soc_attach(u_int16_t devid,
 	case QCN9000_DEVICE_ID:
 	case QCN6122_DEVICE_ID:
 	case QCN9160_DEVICE_ID:
+	case QCN6432_DEVICE_ID:
 	case QCA6390_DEVICE_ID:
 	case QCA6490_DEVICE_ID:
 	case QCA6750_DEVICE_ID:

+ 2 - 0
dp/wifi3.0/dp_rings_main.c

@@ -4346,6 +4346,7 @@ static void dp_soc_cfg_init(struct dp_soc *soc)
 		soc->features.wds_ext_ast_override_enable = true;
 		break;
 	case TARGET_TYPE_QCA5332:
+	case TARGET_TYPE_QCN6432:
 		soc->ast_override_support = 1;
 		soc->da_war_enabled = false;
 		wlan_cfg_set_raw_mode_war(soc->wlan_cfg_ctx, false);
@@ -5158,6 +5159,7 @@ void dp_soc_cfg_attach(struct dp_soc *soc)
 		break;
 	case TARGET_TYPE_QCN9224:
 	case TARGET_TYPE_QCA5332:
+	case TARGET_TYPE_QCN6432:
 		wlan_cfg_set_tso_desc_attach_defer(soc->wlan_cfg_ctx, 1);
 		wlan_cfg_set_rxdma1_enable(soc->wlan_cfg_ctx);
 		break;

+ 3 - 0
dp/wifi3.0/monitor/dp_mon.c

@@ -5498,6 +5498,7 @@ QDF_STATUS dp_mon_soc_cfg_init(struct dp_soc *soc)
 		break;
 	case TARGET_TYPE_QCN9224:
 	case TARGET_TYPE_QCA5332:
+	case TARGET_TYPE_QCN6432:
 		wlan_cfg_set_mon_delayed_replenish_entries(soc->wlan_cfg_ctx,
 							   MON_BUF_MIN_ENTRIES);
 		mon_soc->hw_nac_monitor_support = 1;
@@ -6183,6 +6184,7 @@ void dp_mon_ops_register(struct dp_soc *soc)
 		break;
 	case TARGET_TYPE_QCN9224:
 	case TARGET_TYPE_QCA5332:
+	case TARGET_TYPE_QCN6432:
 #ifdef QCA_MONITOR_2_0_SUPPORT
 		dp_mon_ops_register_2_0(mon_soc);
 #endif
@@ -6253,6 +6255,7 @@ void dp_mon_cdp_ops_register(struct dp_soc *soc)
 		break;
 	case TARGET_TYPE_QCN9224:
 	case TARGET_TYPE_QCA5332:
+	case TARGET_TYPE_QCN6432:
 #ifdef QCA_MONITOR_2_0_SUPPORT
 		dp_mon_cdp_ops_register_2_0(ops);
 #if defined(WLAN_CFR_ENABLE) && defined(WLAN_ENH_CFR_ENABLE)