2009-06-04 06:39:36 +00:00
|
|
|
#
|
2011-10-28 13:24:41 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2009-06-04 06:39:36 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
SPI_MENU:=SPI Support
|
|
|
|
|
|
|
|
define KernelPackage/mmc-spi
|
|
|
|
SUBMENU:=$(SPI_MENU)
|
|
|
|
TITLE:=MMC/SD over SPI Support
|
2011-10-28 13:24:41 +00:00
|
|
|
DEPENDS:=+kmod-mmc +kmod-lib-crc-itu-t +kmod-lib-crc7
|
2009-06-04 06:39:36 +00:00
|
|
|
KCONFIG:=CONFIG_MMC_SPI \
|
|
|
|
CONFIG_SPI=y \
|
|
|
|
CONFIG_SPI_MASTER=y
|
2013-07-19 14:13:45 +00:00
|
|
|
FILES:=\
|
2022-10-10 06:04:41 +00:00
|
|
|
$(if $(CONFIG_OF),$(LINUX_DIR)/drivers/mmc/host/of_mmc_spi.ko@lt5.13) \
|
|
|
|
$(LINUX_DIR)/drivers/mmc/host/of_mmc_spi.ko@ge5.13 \
|
2013-07-19 14:13:45 +00:00
|
|
|
$(LINUX_DIR)/drivers/mmc/host/mmc_spi.ko
|
2022-10-10 06:04:41 +00:00
|
|
|
AUTOLOAD:=$(call AutoProbe,$(if $(CONFIG_OF),of_mmc_spi@lt5.13) of_mmc_spi@ge5.13 mmc_spi)
|
2009-06-04 06:39:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/mmc-spi/description
|
|
|
|
Kernel support for MMC/SD over SPI
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,mmc-spi))
|
|
|
|
|
|
|
|
|
|
|
|
define KernelPackage/spi-bitbang
|
|
|
|
SUBMENU:=$(SPI_MENU)
|
|
|
|
TITLE:=Serial Peripheral Interface bitbanging library
|
|
|
|
KCONFIG:=CONFIG_SPI_BITBANG \
|
|
|
|
CONFIG_SPI=y \
|
|
|
|
CONFIG_SPI_MASTER=y
|
2012-05-27 12:33:55 +00:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/spi/spi-bitbang.ko
|
2009-06-04 06:39:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/spi-bitbang/description
|
|
|
|
This package contains the SPI bitbanging library
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,spi-bitbang))
|
|
|
|
|
|
|
|
|
|
|
|
define KernelPackage/spi-gpio
|
|
|
|
SUBMENU:=$(SPI_MENU)
|
|
|
|
TITLE:=GPIO-based bitbanging SPI Master
|
|
|
|
DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
|
|
|
|
KCONFIG:=CONFIG_SPI_GPIO
|
2012-05-27 12:33:55 +00:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
|
2013-09-17 21:45:17 +00:00
|
|
|
AUTOLOAD:=$(call AutoProbe,spi-gpio)
|
2009-06-04 06:39:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/spi-gpio/description
|
|
|
|
This package contains the GPIO-based bitbanging SPI Master
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,spi-gpio))
|
|
|
|
|
|
|
|
define KernelPackage/spi-dev
|
|
|
|
SUBMENU:=$(SPI_MENU)
|
|
|
|
TITLE:=User mode SPI device driver
|
2014-08-27 08:49:55 +00:00
|
|
|
KCONFIG:=CONFIG_SPI_SPIDEV \
|
2009-06-04 06:39:36 +00:00
|
|
|
CONFIG_SPI=y \
|
|
|
|
CONFIG_SPI_MASTER=y
|
2010-07-12 14:06:13 +00:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/spi/spidev.ko
|
2013-09-17 21:45:17 +00:00
|
|
|
AUTOLOAD:=$(call AutoProbe,spidev)
|
2009-06-04 06:39:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/spi-dev/description
|
|
|
|
This package contains the user mode SPI device driver
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,spi-dev))
|