qcacmn: Add PEACH device support

Add support for peach device. Add peach conditional statements.

Change-Id: Ia107e60fd00b4938984414fd92d6699d11fd3797
CRs-Fixed: 3394198
This commit is contained in:
Prakash Manjunathappa
2022-12-26 09:30:48 -08:00
کامیت شده توسط Madan Koyyalamudi
والد 4bb2e1a3f2
کامیت 3cde321196
17فایلهای تغییر یافته به همراه86 افزوده شده و 18 حذف شده

مشاهده پرونده

@@ -123,7 +123,8 @@ static ssize_t ath_procfs_diag_read_legacy(struct file *file,
(tgt_info->target_type == TARGET_TYPE_QCA6018) ||
(tgt_info->target_type == TARGET_TYPE_QCN7605) ||
(tgt_info->target_type == TARGET_TYPE_KIWI) ||
(tgt_info->target_type == TARGET_TYPE_MANGO))) ||
(tgt_info->target_type == TARGET_TYPE_MANGO) ||
(tgt_info->target_type == TARGET_TYPE_PEACH))) ||
(scn->bus_type == QDF_BUS_TYPE_IPCI &&
(tgt_info->target_type == TARGET_TYPE_QCA6750)) ||
((scn->bus_type == QDF_BUS_TYPE_USB) &&
@@ -208,7 +209,8 @@ static ssize_t ath_procfs_diag_write_legacy(struct file *file,
(tgt_info->target_type == TARGET_TYPE_QCA6018) ||
(tgt_info->target_type == TARGET_TYPE_QCN7605) ||
(tgt_info->target_type == TARGET_TYPE_KIWI) ||
(tgt_info->target_type == TARGET_TYPE_MANGO))) ||
(tgt_info->target_type == TARGET_TYPE_MANGO) ||
(tgt_info->target_type == TARGET_TYPE_PEACH))) ||
(scn->bus_type == QDF_BUS_TYPE_IPCI &&
(tgt_info->target_type == TARGET_TYPE_QCA6750)) ||
((scn->bus_type == QDF_BUS_TYPE_USB) &&
@@ -355,6 +357,7 @@ static ssize_t ath_procfs_diag_read_ext(struct file *file, char __user *buf,
case TARGET_TYPE_QCA6390:
case TARGET_TYPE_QCA6490:
case TARGET_TYPE_KIWI:
case TARGET_TYPE_PEACH:
case TARGET_TYPE_MANGO:
if (op_type == OP_TYPE_EXT_DIRECT)
rv = ath_procfs_direct_read(scn,
@@ -432,6 +435,7 @@ static ssize_t ath_procfs_diag_write_ext(struct file *file,
case TARGET_TYPE_QCA6490:
case TARGET_TYPE_KIWI:
case TARGET_TYPE_MANGO:
case TARGET_TYPE_PEACH:
if (op_type == OP_TYPE_EXT_DIRECT)
rv = ath_procfs_direct_write(scn,
offset,

مشاهده پرونده

@@ -1451,6 +1451,7 @@ static void hif_select_service_to_pipe_map(struct hif_softc *scn,
break;
case TARGET_TYPE_KIWI:
case TARGET_TYPE_MANGO:
case TARGET_TYPE_PEACH:
hif_select_service_to_pipe_map_kiwi(scn,
tgt_svc_map_to_use,
sz_tgt_svc_map_to_use);
@@ -1768,6 +1769,7 @@ bool ce_srng_based(struct hif_softc *scn)
case TARGET_TYPE_QCA5018:
case TARGET_TYPE_KIWI:
case TARGET_TYPE_MANGO:
case TARGET_TYPE_PEACH:
case TARGET_TYPE_QCN9224:
case TARGET_TYPE_QCA9574:
case TARGET_TYPE_QCA5332:
@@ -3946,6 +3948,7 @@ int hif_wlan_enable(struct hif_softc *scn)
switch (tgt_info->target_type) {
case TARGET_TYPE_KIWI:
case TARGET_TYPE_MANGO:
case TARGET_TYPE_PEACH:
hif_prepare_hal_shadow_reg_cfg_v3(scn, &cfg);
break;
default:
@@ -4246,6 +4249,7 @@ void hif_ce_prepare_config(struct hif_softc *scn)
break;
case TARGET_TYPE_KIWI:
case TARGET_TYPE_MANGO:
case TARGET_TYPE_PEACH:
hif_ce_select_config_kiwi(hif_state);
scn->ce_count = KIWI_CE_COUNT;
break;

مشاهده پرونده

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2012-2018, 2020-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -40,6 +40,7 @@
#define WCN3998 0x40030001
#define AR900B_REV_2 0x1
#define MANGO_V1 0xDEADBEEF // TODO Define this
#define PEACH_V1 0x40210100
#define KIWI_V1 0x40170100
#define KIWI_V2 0x40170200
#define QCA6490_v2_1 0x400c1211

مشاهده پرونده

@@ -366,6 +366,12 @@ static const struct qwlan_hw qwlan_hw_list[] = {
.subid = 0xF,
.name = "MANGO_V1",
},
{
.id = PEACH_V1,
.subid = 0,
.name = "PEACH_V1",
},
{
.id = KIWI_V1,
.subid = 0,
@@ -1783,6 +1789,12 @@ int hif_get_device_type(uint32_t device_id,
hif_info(" *********** MANGO *************");
break;
case PEACH_DEVICE_ID:
*hif_type = HIF_TYPE_PEACH;
*target_type = TARGET_TYPE_PEACH;
hif_info(" *********** PEACH *************");
break;
case QCA8074V2_DEVICE_ID:
*hif_type = HIF_TYPE_QCA8074V2;
*target_type = TARGET_TYPE_QCA8074V2;

مشاهده پرونده

@@ -99,6 +99,7 @@
#define QCA6490_EMULATION_DEVICE_ID (0x010a)
#define QCA6490_DEVICE_ID (0x1103)
#define MANGO_DEVICE_ID (0x110a)
#define PEACH_DEVICE_ID (0x110e)
/* TODO: change IDs for Moselle */
#define QCA6750_EMULATION_DEVICE_ID (0x010c)

مشاهده پرونده

@@ -3726,6 +3726,7 @@ static bool hif_is_pld_based_target(struct hif_pci_softc *sc,
case QCN7605_DEVICE_ID:
case KIWI_DEVICE_ID:
case MANGO_DEVICE_ID:
case PEACH_DEVICE_ID:
return true;
}
return false;
@@ -3755,6 +3756,7 @@ static void hif_pci_init_reg_windowing_support(struct hif_pci_softc *sc,
case TARGET_TYPE_QCA6390:
case TARGET_TYPE_KIWI:
case TARGET_TYPE_MANGO:
case TARGET_TYPE_PEACH:
sc->use_register_windowing = true;
qdf_spinlock_create(&sc->register_access_lock);
sc->register_window = 0;
@@ -3977,7 +3979,8 @@ int hif_pci_addr_in_boundary(struct hif_softc *scn, uint32_t offset)
tgt_info->target_type == TARGET_TYPE_QCN7605 ||
tgt_info->target_type == TARGET_TYPE_QCA8074 ||
tgt_info->target_type == TARGET_TYPE_KIWI ||
tgt_info->target_type == TARGET_TYPE_MANGO) {
tgt_info->target_type == TARGET_TYPE_MANGO ||
tgt_info->target_type == TARGET_TYPE_PEACH) {
/*
* Need to consider offset's memtype for QCA6290/QCA8074,
* also mem_len and DRAM_BASE_ADDRESS/DRAM_SIZE need to be

مشاهده پرونده

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -208,6 +208,12 @@ void hif_target_register_tbl_attach(struct hif_softc *scn, u32 target_type)
scn->target_ce_def = KIWI_CE_TARGETdef;
hif_info("TARGET_TYPE_MANGO");
break;
case TARGET_TYPE_PEACH:
scn->targetdef = KIWI_TARGETdef;
scn->target_ce_def = KIWI_CE_TARGETdef;
hif_info("TARGET_TYPE_PEACH");
break;
#endif /* KIWI_HEADERS_DEF */
#if defined(QCA6750_HEADERS_DEF)
@@ -363,6 +369,11 @@ void hif_register_tbl_attach(struct hif_softc *scn, u32 hif_type)
scn->hostdef = KIWI_HOSTdef;
hif_info("HIF_TYPE_MANGO");
break;
case HIF_TYPE_PEACH:
scn->hostdef = KIWI_HOSTdef;
hif_info("HIF_TYPE_PEACH");
break;
#endif /* KIWI_HEADERS_DEF */
#if defined(QCA6750_HEADERS_DEF)