qcacmn: Add support for CFR in adrastea target

Add the init and deinit CFR pdev api for adrastea target type.
cfr_adrastea_init_pdev api enables the CFR feature if both host and
firmware supports the feature, initialises the cfr pdev structure
and streamfs.

Also during allocation of memory requested by firmware, skip smaller
chunks memory allocation for CFR capture requested memory as firmware
expects contiguous memory.

Change-Id: Ib893dc8a845fea990a11e95e98d8a656f7df12ba
CRs-Fixed: 2687057
This commit is contained in:
Surabhi Vishnoi
2020-04-27 15:12:04 +05:30
committed by nshrivas
parent dd686ad391
commit d2c2a6aec6
7 changed files with 256 additions and 4 deletions

View File

@@ -69,12 +69,13 @@ static uint32_t init_deinit_alloc_host_mem_chunk(struct wlan_objmgr_psoc *psoc,
return 0;
/*
* We have skip smaller chunks memory allocation for TXBF_CV buffer
* as Firmware is expecting continuous memory
* We have skip smaller chunks memory allocation for TXBF_CV and
* CFR_CAPTURE buffer as Firmware is expecting continuous memory
*/
if (!((num_unit_info & HOST_CONTIGUOUS_MEM_CHUNK_REQUIRED) &&
(req_id == TXBF_CV_POOL0 || req_id == TXBF_CV_POOL1 ||
req_id == TXBF_CV_POOL2))) {
req_id == TXBF_CV_POOL2 ||
req_id == CFR_CAPTURE_HOST_MEM_REQ_ID))) {
ichunk = ((num_units * unit_len) >>
HOST_MEM_CHUNK_MAX_SIZE_POWER2);
if (ichunk)