qcacmn: Add PEACH device support

Add support for peach device. Add peach conditional statements.

Change-Id: Ia107e60fd00b4938984414fd92d6699d11fd3797
CRs-Fixed: 3394198
这个提交包含在:
Prakash Manjunathappa
2022-12-26 09:30:48 -08:00
提交者 Madan Koyyalamudi
父节点 4bb2e1a3f2
当前提交 3cde321196
修改 17 个文件,包含 86 行新增18 行删除

查看文件

@@ -226,7 +226,8 @@ void target_if_cfr_fill_header(struct csi_cfr_header *hdr,
target_type == TARGET_TYPE_QCA6490 ||
target_type == TARGET_TYPE_QCA6750 ||
target_type == TARGET_TYPE_KIWI ||
target_type == TARGET_TYPE_MANGO)
target_type == TARGET_TYPE_MANGO ||
target_type == TARGET_TYPE_PEACH)
hdr->cmn.cfr_metadata_version = CFR_META_VERSION_7;
else if ((target_type == TARGET_TYPE_QCA6018) ||
((target_type == TARGET_TYPE_QCA5018) && (!is_rcc)))
@@ -254,6 +255,8 @@ void target_if_cfr_fill_header(struct csi_cfr_header *hdr,
hdr->cmn.chip_type = CFR_CAPTURE_RADIO_KIWI;
else if (target_type == TARGET_TYPE_MANGO)
hdr->cmn.chip_type = CFR_CAPTURE_RADIO_MANGO;
else if (target_type == TARGET_TYPE_PEACH)
hdr->cmn.chip_type = CFR_CAPTURE_RADIO_PEACH;
else
hdr->cmn.chip_type = CFR_CAPTURE_RADIO_CYP;
}
@@ -321,6 +324,8 @@ static QDF_STATUS target_if_cfr_init_target(struct wlan_objmgr_psoc *psoc,
cfr_pdev->chip_type = CFR_CAPTURE_RADIO_KIWI;
else if (target == TARGET_TYPE_MANGO)
cfr_pdev->chip_type = CFR_CAPTURE_RADIO_MANGO;
else if (target == TARGET_TYPE_PEACH)
cfr_pdev->chip_type = CFR_CAPTURE_RADIO_PEACH;
return status;
}
@@ -362,7 +367,8 @@ target_if_cfr_init_pdev(struct wlan_objmgr_psoc *psoc,
if (target_type == TARGET_TYPE_QCA6490 ||
target_type == TARGET_TYPE_QCA6750 ||
target_type == TARGET_TYPE_KIWI ||
target_type == TARGET_TYPE_MANGO) {
target_type == TARGET_TYPE_MANGO ||
target_type == TARGET_TYPE_PEACH) {
status = target_if_cfr_init_target(psoc,
pdev, target_type);
} else if (target_type == TARGET_TYPE_ADRASTEA) {
@@ -387,7 +393,8 @@ target_if_cfr_deinit_pdev(struct wlan_objmgr_psoc *psoc,
if (target_type == TARGET_TYPE_QCA6490 ||
target_type == TARGET_TYPE_QCA6750 ||
target_type == TARGET_TYPE_KIWI ||
target_type == TARGET_TYPE_MANGO) {
target_type == TARGET_TYPE_MANGO ||
target_type == TARGET_TYPE_PEACH) {
status = target_if_cfr_deinit_target(psoc, pdev);
} else if (target_type == TARGET_TYPE_ADRASTEA) {
status = cfr_adrastea_deinit_pdev(psoc, pdev);