qcacld-3.0: Add support for peach device

Add support for peach device. Enable HIF and HW header corresponding
to PEACH

Change-Id: I3c6690fbe8e3e6398ad6ba25fba0b7bb0856cc2b
CRs-Fixed: 3394196
This commit is contained in:
Prakash Manjunathappa
2022-12-19 14:10:14 -08:00
committed by Madan Koyyalamudi
parent a77c42a4ab
commit bfc3d11564
2 changed files with 11 additions and 5 deletions

8
Kbuild
View File

@@ -2814,7 +2814,7 @@ endif
HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
else ifeq ($(CONFIG_BERYLLIUM), y)
ifeq (y,$(findstring y,$(CONFIG_CNSS_KIWI) $(CONFIG_CNSS_KIWI_V2)))
ifeq (y,$(findstring y,$(CONFIG_CNSS_KIWI) $(CONFIG_CNSS_KIWI_V2) $CONFIG_CNSS_PEACH))
HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/kiwidef.o
endif
@@ -2942,7 +2942,7 @@ HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/be/hal_be_generic_api.o
HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/be/hal_be_reo.o \
ifeq (y,$(findstring y,$(CONFIG_CNSS_KIWI) $(CONFIG_CNSS_KIWI_V2)))
ifeq (y,$(findstring y,$(CONFIG_CNSS_KIWI) $(CONFIG_CNSS_KIWI_V2) $(CONFIG_CNSS_PEACH)))
HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/kiwi
HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/kiwi/hal_kiwi.o
else
@@ -3079,6 +3079,9 @@ ifeq ($(CONFIG_CNSS_QCA6750), y)
TARGET_INC += -I$(WLAN_FW_API)/hw/qca6750/v1
endif
ifeq ($(CONFIG_CNSS_PEACH), y)
TARGET_INC += -I$(WLAN_FW_API)/hw/peach/v1/
else
ifeq ($(CONFIG_CNSS_KIWI_V2), y)
TARGET_INC += -I$(WLAN_FW_API)/hw/kiwi/v2/
else
@@ -3086,6 +3089,7 @@ ifeq ($(CONFIG_CNSS_KIWI), y)
TARGET_INC += -I$(WLAN_FW_API)/hw/kiwi/v1/
endif
endif
endif
LINUX_INC := -Iinclude

View File

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2012-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
@@ -818,7 +818,8 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
}
hdd_ctx->is_wifi3_0_target = true;
} else if (hdd_ctx->target_type == TARGET_TYPE_KIWI ||
hdd_ctx->target_type == TARGET_TYPE_MANGO) {
hdd_ctx->target_type == TARGET_TYPE_MANGO ||
hdd_ctx->target_type == TARGET_TYPE_PEACH) {
gp_cds_context->dp_soc =
cdp_soc_attach(BERYLLIUM_DP,
gp_cds_context->hif_context,
@@ -966,7 +967,8 @@ QDF_STATUS cds_dp_open(struct wlan_objmgr_psoc *psoc)
hdd_ctx->target_type == TARGET_TYPE_QCA6490 ||
hdd_ctx->target_type == TARGET_TYPE_QCA6750 ||
hdd_ctx->target_type == TARGET_TYPE_KIWI ||
hdd_ctx->target_type == TARGET_TYPE_MANGO) {
hdd_ctx->target_type == TARGET_TYPE_MANGO ||
hdd_ctx->target_type == TARGET_TYPE_PEACH) {
qdf_status = cdp_pdev_init(cds_get_context(QDF_MODULE_ID_SOC),
gp_cds_context->htc_ctx,
gp_cds_context->qdf_ctx, 0);