From 20a57094a3866f6e86415288a1bb0e92f8b382f9 Mon Sep 17 00:00:00 2001 From: Kannan Saravanan Date: Tue, 11 Apr 2023 17:56:06 +0530 Subject: [PATCH] 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 --- dp/inc/cdp_txrx_cmn_reg.h | 2 ++ dp/wifi3.0/dp_rings_main.c | 2 ++ dp/wifi3.0/monitor/dp_mon.c | 3 +++ 3 files changed, 7 insertions(+) diff --git a/dp/inc/cdp_txrx_cmn_reg.h b/dp/inc/cdp_txrx_cmn_reg.h index 00c5f45d53..ca004032af 100644 --- a/dp/inc/cdp_txrx_cmn_reg.h +++ b/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: diff --git a/dp/wifi3.0/dp_rings_main.c b/dp/wifi3.0/dp_rings_main.c index e95ca82942..bfc5d33ca1 100644 --- a/dp/wifi3.0/dp_rings_main.c +++ b/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; diff --git a/dp/wifi3.0/monitor/dp_mon.c b/dp/wifi3.0/monitor/dp_mon.c index b67e0f1217..0374cbc29b 100644 --- a/dp/wifi3.0/monitor/dp_mon.c +++ b/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)