1c7a28a735f0963e4b2bbd0719a023a6e0706d30
[openwrt/staging/wigyori.git] / target / linux / generic / hack-4.9 / 835-misc-owl_loader.patch
1 From dd36f935973d91644449bd9749f6062a2bed821b Mon Sep 17 00:00:00 2001
2 From: Christian Lamparter <chunkeey@googlemail.com>
3 Date: Fri, 7 Jul 2017 17:26:46 +0200
4 Subject: misc: owl-loader for delayed Atheros ath9k fixup
5
6 Some devices (like the Cisco Meraki Z1 Cloud Managed Teleworker Gateway)
7 need to be able to initialize the PCIe wifi device. Normally, this is done
8 during the early stages of booting linux, because the necessary init code
9 is read from the memory mapped SPI and passed to pci_enable_ath9k_fixup.
10 However,this isn't possible for devices which have the init code for the
11 Atheros chip stored on NAND in an UBI volume. Hence, this module can be
12 used to initialze the chip when the user-space is ready to extract the
13 init code.
14
15 Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
16 Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
17 ---
18 drivers/misc/Kconfig | 12 ++++++++++++
19 drivers/misc/Makefile | 1 +
20 2 files changed, 13 insertions(+)
21
22 diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
23 index 64971baf11fa..50d2eaa75d41 100644
24 --- a/drivers/misc/Kconfig
25 +++ b/drivers/misc/Kconfig
26 @@ -151,6 +151,18 @@ config SGI_IOC4
27 If you have an SGI Altix with an IOC4-based card say Y.
28 Otherwise say N.
29
30 +config OWL_LOADER
31 + tristate "Owl loader for initializing Atheros PCI(e) Wifi chips"
32 + depends on PCI
33 + ---help---
34 + This kernel module helps to initialize certain Qualcomm
35 + Atheros' PCI(e) Wifi chips, which have the init data
36 + (which contains the PCI device ID for example) stored
37 + together with the calibration data in the file system.
38 +
39 + This is necessary for devices like the Cisco Meraki Z1, say M.
40 + Otherwise say N.
41 +
42 config TIFM_CORE
43 tristate "TI Flash Media interface support"
44 depends on PCI
45 diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
46 index 31983366090a..48c7e74a6e5a 100644
47 --- a/drivers/misc/Makefile
48 +++ b/drivers/misc/Makefile
49 @@ -12,6 +12,7 @@ obj-$(CONFIG_ATMEL_TCLIB) += atmel_tclib.o
50 obj-$(CONFIG_DUMMY_IRQ) += dummy-irq.o
51 obj-$(CONFIG_ICS932S401) += ics932s401.o
52 obj-$(CONFIG_LKDTM) += lkdtm.o
53 +obj-$(CONFIG_OWL_LOADER) += owl-loader.o
54 obj-$(CONFIG_TIFM_CORE) += tifm_core.o
55 obj-$(CONFIG_TIFM_7XX1) += tifm_7xx1.o
56 obj-$(CONFIG_PHANTOM) += phantom.o
57 --
58 2.11.0
59