From 4aa7278f36e63149f11ece1180035fa59b904361 Mon Sep 17 00:00:00 2001 From: Kannan Saravanan Date: Thu, 29 Sep 2022 07:53:48 +0530 Subject: [PATCH] qcacmn: Initial changes for york bringup in Common dev to DP Add device Id and target type checks for qcn9160 target compilation. Change-Id: Ic0391847af824ea7f6b85b574a0c5912ccd414c8 CRs-Fixed: 3282635 --- dp/inc/cdp_txrx_cmn_reg.h | 2 ++ dp/wifi3.0/dp_main.c | 2 ++ dp/wifi3.0/monitor/dp_mon.c | 3 +++ gpio/dispatcher/src/wlan_gpio_tgt_api.c | 1 + 4 files changed, 8 insertions(+) diff --git a/dp/inc/cdp_txrx_cmn_reg.h b/dp/inc/cdp_txrx_cmn_reg.h index add1b94ff3..0e02b96a9a 100644 --- a/dp/inc/cdp_txrx_cmn_reg.h +++ b/dp/inc/cdp_txrx_cmn_reg.h @@ -118,6 +118,7 @@ static inline int cdp_get_arch_type_from_devid(uint16_t devid) case QCA6290_DEVICE_ID: case QCN9000_DEVICE_ID: case QCN6122_DEVICE_ID: + case QCN9160_DEVICE_ID: case QCA6390_DEVICE_ID: case QCA6490_DEVICE_ID: case QCA6750_DEVICE_ID: @@ -165,6 +166,7 @@ ol_txrx_soc_handle cdp_soc_attach(u_int16_t devid, case QCA6290_DEVICE_ID: case QCN9000_DEVICE_ID: case QCN6122_DEVICE_ID: + case QCN9160_DEVICE_ID: case QCA6390_DEVICE_ID: case QCA6490_DEVICE_ID: case QCA6750_DEVICE_ID: diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index df92e35491..e2d1da72cc 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -16824,6 +16824,7 @@ static void dp_soc_cfg_init(struct dp_soc *soc) break; case TARGET_TYPE_QCA5018: case TARGET_TYPE_QCN6122: + case TARGET_TYPE_QCN9160: soc->ast_override_support = 1; soc->da_war_enabled = false; wlan_cfg_set_raw_mode_war(soc->wlan_cfg_ctx, false); @@ -16905,6 +16906,7 @@ static void dp_soc_cfg_attach(struct dp_soc *soc) case TARGET_TYPE_QCA6018: case TARGET_TYPE_QCA9574: case TARGET_TYPE_QCN6122: + case TARGET_TYPE_QCN9160: case TARGET_TYPE_QCA5018: wlan_cfg_set_tso_desc_attach_defer(soc->wlan_cfg_ctx, 1); wlan_cfg_set_rxdma1_enable(soc->wlan_cfg_ctx); diff --git a/dp/wifi3.0/monitor/dp_mon.c b/dp/wifi3.0/monitor/dp_mon.c index 8f0be7352f..689c06ad3c 100644 --- a/dp/wifi3.0/monitor/dp_mon.c +++ b/dp/wifi3.0/monitor/dp_mon.c @@ -4960,6 +4960,7 @@ QDF_STATUS dp_mon_soc_cfg_init(struct dp_soc *soc) break; case TARGET_TYPE_QCA5018: case TARGET_TYPE_QCN6122: + case TARGET_TYPE_QCN9160: wlan_cfg_set_mon_delayed_replenish_entries(soc->wlan_cfg_ctx, MON_BUF_MIN_ENTRIES); mon_soc->hw_nac_monitor_support = 1; @@ -5633,6 +5634,7 @@ void dp_mon_ops_register(struct dp_soc *soc) case TARGET_TYPE_QCA8074V2: case TARGET_TYPE_QCA6018: case TARGET_TYPE_QCA9574: + case TARGET_TYPE_QCN9160: case TARGET_TYPE_QCN9000: case TARGET_TYPE_QCA5018: case TARGET_TYPE_QCN6122: @@ -5693,6 +5695,7 @@ void dp_mon_cdp_ops_register(struct dp_soc *soc) case TARGET_TYPE_QCA8074V2: case TARGET_TYPE_QCA6018: case TARGET_TYPE_QCA9574: + case TARGET_TYPE_QCN9160: case TARGET_TYPE_QCN9000: case TARGET_TYPE_QCA5018: case TARGET_TYPE_QCN6122: diff --git a/gpio/dispatcher/src/wlan_gpio_tgt_api.c b/gpio/dispatcher/src/wlan_gpio_tgt_api.c index 7ab6b2d6cb..8630a232c2 100644 --- a/gpio/dispatcher/src/wlan_gpio_tgt_api.c +++ b/gpio/dispatcher/src/wlan_gpio_tgt_api.c @@ -102,6 +102,7 @@ static bool tgt_gpio_disabled(struct wlan_objmgr_psoc *psoc) if ((target_type == TARGET_TYPE_QCA8074) || (target_type == TARGET_TYPE_QCN6122) || + (target_type == TARGET_TYPE_QCN9160) || (target_type == TARGET_TYPE_QCA8074V2) || (target_type == TARGET_TYPE_QCA9574) || (target_type == TARGET_TYPE_QCA5332) ||