qcacmn: Removal of pre lithium wlan driver support in 12.x Software
Code related to IPQ4019 is removed Change-Id: I64ef452cafe64840576f40a8f35bc617b9978c96
This commit is contained in:

committato da
Madan Koyyalamudi

parent
7e7019e9d0
commit
8b6625530d
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 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
|
||||
@@ -72,18 +73,12 @@ hif_ce_dump_target_memory(struct hif_softc *scn, void *ramdump_base,
|
||||
| 0x100000 | ((addr) & 0xfffff))
|
||||
#endif
|
||||
|
||||
#define TARG_CPU_SPACE_TO_CE_SPACE_IPQ4019(scn, pci_addr, addr) \
|
||||
(hif_read32_mb(scn, (pci_addr) + (WIFICMN_PCIE_BAR_REG_ADDRESS)) \
|
||||
| ((addr) & 0xfffff))
|
||||
|
||||
#define TARG_CPU_SPACE_TO_CE_SPACE_AR900B(scn, pci_addr, addr) \
|
||||
(hif_read32_mb(scn, (pci_addr) + (WIFICMN_PCIE_BAR_REG_ADDRESS)) \
|
||||
| 0x100000 | ((addr) & 0xfffff))
|
||||
|
||||
#define SRAM_BASE_ADDRESS 0xc0000
|
||||
#define SRAM_END_ADDRESS 0x100000
|
||||
#define WIFI0_IPQ4019_BAR 0xa000000
|
||||
#define WIFI1_IPQ4019_BAR 0xa800000
|
||||
|
||||
/* Wait up to this many Ms for a Diagnostic Access CE operation to complete */
|
||||
#define DIAG_ACCESS_CE_TIMEOUT_MS 10
|
||||
@@ -101,23 +96,9 @@ static qdf_dma_addr_t get_ce_phy_addr(struct hif_softc *sc, uint32_t address,
|
||||
{
|
||||
qdf_dma_addr_t ce_phy_addr;
|
||||
struct hif_softc *scn = sc;
|
||||
unsigned int region = address & 0xfffff;
|
||||
unsigned int bar = address & 0xfff00000;
|
||||
unsigned int sramregion = 0;
|
||||
|
||||
if ((target_type == TARGET_TYPE_IPQ4019) &&
|
||||
(region >= SRAM_BASE_ADDRESS && region <= SRAM_END_ADDRESS)
|
||||
&& (bar == WIFI0_IPQ4019_BAR ||
|
||||
bar == WIFI1_IPQ4019_BAR || bar == 0)) {
|
||||
sramregion = 1;
|
||||
}
|
||||
|
||||
if ((target_type == TARGET_TYPE_IPQ4019) && sramregion == 1) {
|
||||
ce_phy_addr = TARG_CPU_SPACE_TO_CE_SPACE_IPQ4019(sc, sc->mem,
|
||||
address);
|
||||
} else if ((target_type == TARGET_TYPE_AR900B) ||
|
||||
if ((target_type == TARGET_TYPE_AR900B) ||
|
||||
(target_type == TARGET_TYPE_QCA9984) ||
|
||||
(target_type == TARGET_TYPE_IPQ4019) ||
|
||||
(target_type == TARGET_TYPE_QCA9888)) {
|
||||
ce_phy_addr =
|
||||
TARG_CPU_SPACE_TO_CE_SPACE_AR900B(sc, sc->mem, address);
|
||||
@@ -180,8 +161,7 @@ QDF_STATUS hif_diag_read_mem(struct hif_opaque_softc *hif_ctx,
|
||||
* register read fn but preserve the multi word read capability of
|
||||
* this fn
|
||||
*/
|
||||
if ((target_type == TARGET_TYPE_IPQ4019) ||
|
||||
(target_type == TARGET_TYPE_AR900B) ||
|
||||
if ((target_type == TARGET_TYPE_AR900B) ||
|
||||
(target_type == TARGET_TYPE_QCA9984) ||
|
||||
(target_type == TARGET_TYPE_AR9888) ||
|
||||
(target_type == TARGET_TYPE_QCA9888))
|
||||
|
@@ -1329,7 +1329,6 @@ static void hif_select_service_to_pipe_map(struct hif_softc *scn,
|
||||
break;
|
||||
case TARGET_TYPE_AR900B:
|
||||
case TARGET_TYPE_QCA9984:
|
||||
case TARGET_TYPE_IPQ4019:
|
||||
case TARGET_TYPE_QCA9888:
|
||||
case TARGET_TYPE_AR9888:
|
||||
case TARGET_TYPE_AR9888V2:
|
||||
@@ -3922,7 +3921,6 @@ void hif_ce_prepare_config(struct hif_softc *scn)
|
||||
break;
|
||||
case TARGET_TYPE_AR900B:
|
||||
case TARGET_TYPE_QCA9984:
|
||||
case TARGET_TYPE_IPQ4019:
|
||||
case TARGET_TYPE_QCA9888:
|
||||
if (hif_is_attribute_set(scn, HIF_LOWDESC_CE_NO_PKTLOG_CFG)) {
|
||||
hif_state->host_ce_config =
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2022 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
|
||||
@@ -213,8 +213,6 @@ uint32_t hif_hia_item_address(uint32_t target_type, uint32_t item_offset)
|
||||
return QCA9984_HOST_INTEREST_ADDRESS + item_offset;
|
||||
case TARGET_TYPE_QCA9888:
|
||||
return QCA9888_HOST_INTEREST_ADDRESS + item_offset;
|
||||
case TARGET_TYPE_IPQ4019:
|
||||
return IPQ4019_HOST_INTEREST_ADDRESS + item_offset;
|
||||
|
||||
default:
|
||||
ASSERT(0);
|
||||
@@ -1516,12 +1514,6 @@ int hif_get_device_type(uint32_t device_id,
|
||||
hif_info(" *********** AR900B *************");
|
||||
break;
|
||||
|
||||
case IPQ4019_DEVICE_ID:
|
||||
*hif_type = HIF_TYPE_IPQ4019;
|
||||
*target_type = TARGET_TYPE_IPQ4019;
|
||||
hif_info(" *********** IPQ4019 *************");
|
||||
break;
|
||||
|
||||
case QCA8074_DEVICE_ID:
|
||||
*hif_type = HIF_TYPE_QCA8074;
|
||||
*target_type = TARGET_TYPE_QCA8074;
|
||||
|
@@ -110,9 +110,6 @@
|
||||
#define AR900B_DEVICE_ID (0x0040)
|
||||
#define QCA9984_DEVICE_ID (0x0046)
|
||||
#define QCA9888_DEVICE_ID (0x0056)
|
||||
#ifndef IPQ4019_DEVICE_ID
|
||||
#define IPQ4019_DEVICE_ID (0x12ef)
|
||||
#endif
|
||||
#define QCA8074_DEVICE_ID (0xffff) /* Todo: replace this with
|
||||
actual number once available.
|
||||
currently defining this to 0xffff for
|
||||
|
@@ -1936,8 +1936,7 @@ static int hif_pci_configure_legacy_irq(struct hif_pci_softc *sc)
|
||||
hif_write32_mb(sc, sc->mem + PCIE_LOCAL_BASE_ADDRESS +
|
||||
PCIE_SOC_WAKE_ADDRESS, PCIE_SOC_WAKE_RESET);
|
||||
|
||||
if ((target_type == TARGET_TYPE_IPQ4019) ||
|
||||
(target_type == TARGET_TYPE_AR900B) ||
|
||||
if ((target_type == TARGET_TYPE_AR900B) ||
|
||||
(target_type == TARGET_TYPE_QCA9984) ||
|
||||
(target_type == TARGET_TYPE_AR9888) ||
|
||||
(target_type == TARGET_TYPE_QCA9888) ||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2022 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
|
||||
@@ -93,14 +93,6 @@ void hif_target_register_tbl_attach(struct hif_softc *scn, u32 target_type)
|
||||
scn->target_ce_def = QCA9888_CE_TARGETdef;
|
||||
break;
|
||||
#endif
|
||||
#ifdef ATH_AHB
|
||||
#if defined(IPQ4019_HEADERS_DEF)
|
||||
case TARGET_TYPE_IPQ4019:
|
||||
scn->targetdef = IPQ4019_TARGETdef;
|
||||
scn->target_ce_def = IPQ4019_CE_TARGETdef;
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
#if defined(QCA8074_HEADERS_DEF)
|
||||
case TARGET_TYPE_QCA8074:
|
||||
scn->targetdef = QCA8074_TARGETdef;
|
||||
@@ -257,13 +249,6 @@ void hif_register_tbl_attach(struct hif_softc *scn, u32 hif_type)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef ATH_AHB
|
||||
#if defined(IPQ4019_HEADERS_DEF)
|
||||
case HIF_TYPE_IPQ4019:
|
||||
scn->hostdef = IPQ4019_HOSTdef;
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
#if defined(QCA8074_HEADERS_DEF)
|
||||
case HIF_TYPE_QCA8074:
|
||||
scn->hostdef = QCA8074_HOSTdef;
|
||||
|
Fai riferimento in un nuovo problema
Block a user