1config BR2_PACKAGE_WILC_DRIVER
2	bool "wilc kernel module"
3	depends on !BR2_s390x
4	depends on BR2_LINUX_KERNEL
5	help
6	  External kernel module for WILC1000/3000 devices.
7
8	  wilc kernel driver source as found in Microchip's at91-linux
9	  kernel tree with added Kbuild file to be built as a generic
10	  external module.
11
12	  The wilc1000 driver currently maintained in Linux kernel does
13	  not support BLE of the WILC3000 hardware. This package is
14	  meant to bridge that gap until Microchip can get WILC3000
15	  support upstream.
16
17	  Supports both SDIO and SPI modes.
18
19	  https://github.com/embeddedTS/wilc3000-external-module
20
21if BR2_PACKAGE_WILC_DRIVER
22
23config BR2_PACKAGE_WILC_DRIVER_SPI
24	bool "SPI"
25	help
26	  This module adds support for the SPI interface of adapters
27	  using WILC1000/3000 chipset. The WILC1000/3000 has a Serial
28	  Peripheral Interface (SPI) that operates as an SPI slave.
29	  This SPI interface can be used for control and for serial
30	  I/O of 802.11 data. The SPI is a full-duplex slave
31	  synchronous serial interface that is available immediately
32	  following reset when pin 9 (SDIO_SPI_CFG) is tied to VDDIO.
33	  Select this if your platform is using the SPI bus.
34
35config BR2_PACKAGE_WILC_DRIVER_SDIO
36	bool "SDIO"
37	help
38	  This module adds support for the SDIO interface of adapters
39	  using WILC1000/3000 chipset. The WILC1000/3000 SDIO is a full
40	  speed interface. It meets SDIO card specification version 2.0.
41	  The interface supports the 1-bit/4-bit SD transfer mode at the
42	  clock range of 0-50 MHz. The host can use this interface to
43	  read and write from any register within the chip as well as
44	  configure the WILC1000/3000 for data DMA. To use this
45	  interface, pin9 (SDIO_SPI_CFG) must be grounded. Select this
46	  if your platform is using the SDIO bus.
47
48if BR2_PACKAGE_WILC_DRIVER_SDIO
49
50config BR2_PACKAGE_WILC_DRIVER_SDIO_OOB
51	bool "Enable out-of-band interrupt"
52	help
53	  This option enables out-of-band interrupt support for the
54	  WILC1000/3000 chipset. This OOB interrupt is intended to
55	  provide a faster interrupt mechanism for SDIO host controllers
56	  that don't support SDIO interrupt. Select this option If the
57	  SDIO host controller in your platform doesn't support SDIO
58	  time division interrupt.
59endif
60endif
61
62comment "wilc kernel module needs a Linux kernel to be built"
63	depends on !BR2_s390x
64	depends on !BR2_LINUX_KERNEL
65