Skip to content

Commit

Permalink
ath10k-ct: Add driver from 5.7 kernel.
Browse files Browse the repository at this point in the history
  • Loading branch information
greearb committed Jun 25, 2020
1 parent 54243f3 commit e59545d
Show file tree
Hide file tree
Showing 65 changed files with 88,097 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ath10k-5.4/mac.c
Expand Up @@ -9485,6 +9485,8 @@ struct ath10k *ath10k_mac_create(size_t priv_size)
return NULL;
}

pr_err("ath10k_mac_create, priv_size: %lu hw: %p hw->priv: %p\n",
(unsigned long)(priv_size), hw, hw->priv);
ar = hw->priv;
ar->hw = hw;
ar->ops = ops;
Expand Down
2 changes: 1 addition & 1 deletion ath10k-5.4/pci.c
Expand Up @@ -3863,7 +3863,7 @@ static int __ath10k_pci_probe(struct pci_dev *pdev,
int (*pci_hard_reset)(struct ath10k *ar);
u32 (*targ_cpu_to_ce_addr)(struct ath10k *ar, u32 addr);

printk(KERN_INFO "ath10k 5.1 driver, optimized for CT firmware, probing pci device: 0x%x.\n",
printk(KERN_INFO "ath10k 5.4 driver, optimized for CT firmware, probing pci device: 0x%x.\n",
pci_dev->device);

switch (pci_dev->device) {
Expand Down
90 changes: 90 additions & 0 deletions ath10k-5.7/Kconfig
@@ -0,0 +1,90 @@
# SPDX-License-Identifier: ISC
config ATH10K
tristate "Atheros 802.11ac wireless cards support"
depends on MAC80211 && HAS_DMA
select ATH_COMMON
select CRC32
select WANT_DEV_COREDUMP
select ATH10K_CE
---help---
This module adds support for wireless adapters based on
Atheros IEEE 802.11ac family of chipsets.

If you choose to build a module, it'll be called ath10k.

config ATH10K_CE
bool

config ATH10K_PCI
tristate "Atheros ath10k PCI support"
depends on ATH10K && PCI
---help---
This module adds support for PCIE bus

config ATH10K_AHB
bool "Atheros ath10k AHB support"
depends on ATH10K_PCI && OF && RESET_CONTROLLER
---help---
This module adds support for AHB bus

config ATH10K_SDIO
tristate "Atheros ath10k SDIO support (EXPERIMENTAL)"
depends on ATH10K && MMC
---help---
This module adds experimental support for SDIO/MMC bus. Currently
work in progress and will not fully work.

config ATH10K_USB
tristate "Atheros ath10k USB support (EXPERIMENTAL)"
depends on ATH10K && USB
---help---
This module adds experimental support for USB bus. Currently
work in progress and will not fully work.

config ATH10K_SNOC
tristate "Qualcomm ath10k SNOC support (EXPERIMENTAL)"
depends on ATH10K
depends on ARCH_QCOM || COMPILE_TEST
select QCOM_QMI_HELPERS
---help---
This module adds support for integrated WCN3990 chip connected
to system NOC(SNOC).

config ATH10K_DEBUG
bool "Atheros ath10k debugging"
depends on ATH10K
---help---
Enables debug support

If unsure, say Y to make it easier to debug problems.

config ATH10K_DEBUGFS
bool "Atheros ath10k debugfs support"
depends on ATH10K && DEBUG_FS
---help---
Enabled debugfs support

If unsure, say Y to make it easier to debug problems.

config ATH10K_SPECTRAL
bool "Atheros ath10k spectral scan support"
depends on ATH10K_DEBUGFS
select RELAY
default n
---help---
Say Y to enable access to the FFT/spectral data via debugfs.

config ATH10K_TRACING
bool "Atheros ath10k tracing support"
depends on ATH10K
depends on EVENT_TRACING
---help---
Select this to ath10k use tracing infrastructure.

config ATH10K_DFS_CERTIFIED
bool "Atheros DFS support for certified platforms"
depends on ATH10K && CFG80211_CERTIFICATION_ONUS
default n
---help---
This option enables DFS support for initiating radiation on
ath10k.
44 changes: 44 additions & 0 deletions ath10k-5.7/Makefile
@@ -0,0 +1,44 @@
# SPDX-License-Identifier: ISC
obj-$(CONFIG_ATH10K) += ath10k_core.o
ath10k_core-y += mac.o \
debug.o \
core.o \
htc.o \
htt.o \
htt_rx.o \
htt_tx.o \
txrx.o \
wmi.o \
wmi-tlv.o \
bmi.o \
hw.o \
p2p.o \
swap.o

ath10k_core-$(CONFIG_ATH10K_SPECTRAL) += spectral.o
ath10k_core-$(CONFIG_NL80211_TESTMODE) += testmode.o
ath10k_core-$(CONFIG_ATH10K_TRACING) += trace.o
ath10k_core-$(CONFIG_THERMAL) += thermal.o
ath10k_core-$(CONFIG_MAC80211_DEBUGFS) += debugfs_sta.o
ath10k_core-$(CONFIG_PM) += wow.o
ath10k_core-$(CONFIG_DEV_COREDUMP) += coredump.o
ath10k_core-$(CONFIG_ATH10K_CE) += ce.o

obj-$(CONFIG_ATH10K_PCI) += ath10k_pci.o
ath10k_pci-y += pci.o

ath10k_pci-$(CONFIG_ATH10K_AHB) += ahb.o

obj-$(CONFIG_ATH10K_SDIO) += ath10k_sdio.o
ath10k_sdio-y += sdio.o

obj-$(CONFIG_ATH10K_USB) += ath10k_usb.o
ath10k_usb-y += usb.o

obj-$(CONFIG_ATH10K_SNOC) += ath10k_snoc.o
ath10k_snoc-y += qmi.o \
qmi_wlfw_v01.o \
snoc.o

# for tracing framework to find trace.h
CFLAGS_trace.o := -I$(src)

0 comments on commit e59545d

Please sign in to comment.