2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
10 define KernelPackage
/mmc-spi
12 TITLE
:=MMC
/SD over SPI Support
13 DEPENDS
:=+kmod-mmc
+kmod-lib-crc-itu-t
+kmod-lib-crc7
14 KCONFIG
:=CONFIG_MMC_SPI \
18 $(if
$(CONFIG_OF
),$(LINUX_DIR
)/drivers
/mmc
/host
/of_mmc_spi.ko
) \
19 $(LINUX_DIR
)/drivers
/mmc
/host
/mmc_spi.ko
20 AUTOLOAD
:=$(call AutoLoad
,90,$(if
$(CONFIG_OF
),of_mmc_spi
) mmc_spi
)
23 define KernelPackage
/mmc-spi
/description
24 Kernel support for MMC
/SD over SPI
27 $(eval
$(call KernelPackage
,mmc-spi
))
30 define KernelPackage
/spi-bitbang
32 TITLE
:=Serial Peripheral Interface bitbanging library
33 KCONFIG
:=CONFIG_SPI_BITBANG \
36 FILES
:=$(LINUX_DIR
)/drivers
/spi
/spi-bitbang.ko
37 AUTOLOAD
:=$(call AutoLoad
,91,spi-bitbang
)
40 define KernelPackage
/spi-bitbang
/description
41 This package contains the SPI bitbanging library
44 $(eval
$(call KernelPackage
,spi-bitbang
))
47 define KernelPackage
/spi-gpio-old
49 TITLE
:=Old GPIO based bitbanging SPI controller
(DEPRECATED
)
50 DEPENDS
:=@GPIO_SUPPORT
+kmod-spi-bitbang
51 KCONFIG
:=CONFIG_SPI_GPIO_OLD
52 FILES
:=$(LINUX_DIR
)/drivers
/spi
/spi_gpio_old.ko
53 AUTOLOAD
:=$(call AutoLoad
,92,spi_gpio_old
)
56 define KernelPackage
/spi-gpio-old
/description
57 This package contains the GPIO based bitbanging SPI controller driver
60 $(eval
$(call KernelPackage
,spi-gpio-old
))
63 define KernelPackage
/spi-gpio
65 TITLE
:=GPIO-based bitbanging SPI Master
66 DEPENDS
:=@GPIO_SUPPORT
+kmod-spi-bitbang
67 KCONFIG
:=CONFIG_SPI_GPIO
68 FILES
:=$(LINUX_DIR
)/drivers
/spi
/spi-gpio.ko
69 AUTOLOAD
:=$(call AutoLoad
,92,spi-gpio
)
72 define KernelPackage
/spi-gpio
/description
73 This package contains the GPIO-based bitbanging SPI Master
76 $(eval
$(call KernelPackage
,spi-gpio
))
78 define KernelPackage
/spi-dev
80 TITLE
:=User mode SPI device driver
81 KCONFIG
:=CONFIG_SPI_SPIDEV \
84 FILES
:=$(LINUX_DIR
)/drivers
/spi
/spidev.ko
85 AUTOLOAD
:=$(call AutoLoad
,93,spidev
)
88 define KernelPackage
/spi-dev
/description
89 This package contains the user mode SPI device driver
92 $(eval
$(call KernelPackage
,spi-dev
))