qcacmn: device ID and target type checks for ipq5018 target

Initial changes for ipq5018 compilation.
Added device ID and target type checks for ipq5018 traget.

Change-Id: Ib86a371fbe66749fcb6d114e7a4a9931b684e03d
This commit is contained in:
Basamma Yakkanahalli
2020-03-19 10:58:12 +05:30
committed by nshrivas
parent 925a7d389c
commit 9def5df14a
18 changed files with 166 additions and 12 deletions

View File

@@ -10954,7 +10954,8 @@ void dp_soc_set_txrx_ring_map(struct dp_soc *soc)
}
}
#if defined(QCA_WIFI_QCA8074) || defined(QCA_WIFI_QCA6018)
#if defined(QCA_WIFI_QCA8074) || defined(QCA_WIFI_QCA6018) || \
defined(QCA_WIFI_QCA5018)
#ifndef QCA_MEM_ATTACH_ON_WIFI3
@@ -11178,6 +11179,16 @@ void *dp_soc_init(struct dp_soc *soc, HTC_HANDLE htc_handle,
soc->num_hw_dscp_tid_map = HAL_MAX_HW_DSCP_TID_V2_MAPS;
soc->lmac_polled_mode = 1;
break;
case TARGET_TYPE_QCA5018:
wlan_cfg_set_reo_dst_ring_size(soc->wlan_cfg_ctx,
REO_DST_RING_SIZE_QCA8074);
soc->ast_override_support = 1;
soc->da_war_enabled = false;
wlan_cfg_set_raw_mode_war(soc->wlan_cfg_ctx, false);
soc->hw_nac_monitor_support = 1;
soc->per_tid_basize_max_tid = 8;
soc->num_hw_dscp_tid_map = HAL_MAX_HW_DSCP_TID_V2_MAPS;
break;
default:
qdf_print("%s: Unknown tgt type %d\n", __func__, target_type);
qdf_assert_always(0);