generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
62
package/wilc-driver/Config.in
Normal file
62
package/wilc-driver/Config.in
Normal file
@ -0,0 +1,62 @@
|
||||
config BR2_PACKAGE_WILC_DRIVER
|
||||
bool "wilc kernel module"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
help
|
||||
External kernel module for WILC1000/3000 devices.
|
||||
|
||||
wilc kernel driver source as found in Microchip's at91-linux
|
||||
kernel tree with added Kbuild file to be built as a generic
|
||||
external module.
|
||||
|
||||
The wilc1000 driver currently maintained in Linux kernel does
|
||||
not support BLE of the WILC3000 hardware. This package is
|
||||
meant to bridge that gap until Microchip can get WILC3000
|
||||
support upstream.
|
||||
|
||||
Supports both SDIO and SPI modes.
|
||||
|
||||
https://github.com/embeddedTS/wilc3000-external-module
|
||||
|
||||
if BR2_PACKAGE_WILC_DRIVER
|
||||
|
||||
config BR2_PACKAGE_WILC_DRIVER_SPI
|
||||
bool "SPI"
|
||||
help
|
||||
This module adds support for the SPI interface of adapters
|
||||
using WILC1000/3000 chipset. The WILC1000/3000 has a Serial
|
||||
Peripheral Interface (SPI) that operates as an SPI slave.
|
||||
This SPI interface can be used for control and for serial
|
||||
I/O of 802.11 data. The SPI is a full-duplex slave
|
||||
synchronous serial interface that is available immediately
|
||||
following reset when pin 9 (SDIO_SPI_CFG) is tied to VDDIO.
|
||||
Select this if your platform is using the SPI bus.
|
||||
|
||||
config BR2_PACKAGE_WILC_DRIVER_SDIO
|
||||
bool "SDIO"
|
||||
help
|
||||
This module adds support for the SDIO interface of adapters
|
||||
using WILC1000/3000 chipset. The WILC1000/3000 SDIO is a full
|
||||
speed interface. It meets SDIO card specification version 2.0.
|
||||
The interface supports the 1-bit/4-bit SD transfer mode at the
|
||||
clock range of 0-50 MHz. The host can use this interface to
|
||||
read and write from any register within the chip as well as
|
||||
configure the WILC1000/3000 for data DMA. To use this
|
||||
interface, pin9 (SDIO_SPI_CFG) must be grounded. Select this
|
||||
if your platform is using the SDIO bus.
|
||||
|
||||
if BR2_PACKAGE_WILC_DRIVER_SDIO
|
||||
|
||||
config BR2_PACKAGE_WILC_DRIVER_SDIO_OOB
|
||||
bool "Enable out-of-band interrupt"
|
||||
help
|
||||
This option enables out-of-band interrupt support for the
|
||||
WILC1000/3000 chipset. This OOB interrupt is intended to
|
||||
provide a faster interrupt mechanism for SDIO host controllers
|
||||
that don't support SDIO interrupt. Select this option If the
|
||||
SDIO host controller in your platform doesn't support SDIO
|
||||
time division interrupt.
|
||||
endif
|
||||
endif
|
||||
|
||||
comment "wilc kernel module needs a Linux kernel to be built"
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
3
package/wilc-driver/wilc-driver.hash
Normal file
3
package/wilc-driver/wilc-driver.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 4796b1a53781f8702a335b0146d488a9422b71dab39f6f154f955b0ad1711199 wilc-driver-linux4microchip-2021.10-1.tar.gz
|
||||
sha256 f6b78c087c3ebdf0f3c13415070dd480a3f35d8fc76f3d02180a407c1c812f79 LICENSE
|
||||
29
package/wilc-driver/wilc-driver.mk
Normal file
29
package/wilc-driver/wilc-driver.mk
Normal file
@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# wilc-driver
|
||||
#
|
||||
################################################################################
|
||||
|
||||
WILC_DRIVER_VERSION = linux4microchip-2021.10-1
|
||||
WILC_DRIVER_SITE = $(call github,embeddedTS,wilc3000-external-module,$(WILC_DRIVER_VERSION))
|
||||
|
||||
WILC_DRIVER_LICENSE = GPL-2.0
|
||||
WILC_DRIVER_LICENSE_FILES = LICENSE
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WILC_DRIVER_SPI),y)
|
||||
WILC_DRIVER_MODULE_MAKE_OPTS += \
|
||||
CONFIG_WILC_SPI=m
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WILC_DRIVER_SDIO),y)
|
||||
WILC_DRIVER_MODULE_MAKE_OPTS += \
|
||||
CONFIG_WILC_SDIO=m
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WILC_DRIVER_SDIO_OOB),y)
|
||||
WILC_DRIVER_MODULE_MAKE_OPTS += \
|
||||
CONFIG_WILC_HW_OOB_INTR=y
|
||||
endif
|
||||
|
||||
$(eval $(kernel-module))
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user