5cdfc3b2b36b6b96efeb4684090e3b0b75b3f800
[openwrt/openwrt.git] / package / kernel / linux / modules / spi.mk
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 SPI_MENU:=SPI Support
9
10 define KernelPackage/mmc-spi
11 SUBMENU:=$(SPI_MENU)
12 TITLE:=MMC/SD over SPI Support
13 DEPENDS:=+kmod-mmc +kmod-lib-crc-itu-t +kmod-lib-crc7
14 KCONFIG:=CONFIG_MMC_SPI \
15 CONFIG_SPI=y \
16 CONFIG_SPI_MASTER=y
17 FILES:=\
18 $(if $(CONFIG_OF),$(LINUX_DIR)/drivers/mmc/host/of_mmc_spi.ko@lt5.13) \
19 $(LINUX_DIR)/drivers/mmc/host/of_mmc_spi.ko@ge5.13 \
20 $(LINUX_DIR)/drivers/mmc/host/mmc_spi.ko
21 AUTOLOAD:=$(call AutoProbe,$(if $(CONFIG_OF),of_mmc_spi@lt5.13) of_mmc_spi@ge5.13 mmc_spi)
22 endef
23
24 define KernelPackage/mmc-spi/description
25 Kernel support for MMC/SD over SPI
26 endef
27
28 $(eval $(call KernelPackage,mmc-spi))
29
30
31 define KernelPackage/spi-bitbang
32 SUBMENU:=$(SPI_MENU)
33 TITLE:=Serial Peripheral Interface bitbanging library
34 KCONFIG:=CONFIG_SPI_BITBANG \
35 CONFIG_SPI=y \
36 CONFIG_SPI_MASTER=y
37 FILES:=$(LINUX_DIR)/drivers/spi/spi-bitbang.ko
38 endef
39
40 define KernelPackage/spi-bitbang/description
41 This package contains the SPI bitbanging library
42 endef
43
44 $(eval $(call KernelPackage,spi-bitbang))
45
46
47 define KernelPackage/spi-gpio
48 SUBMENU:=$(SPI_MENU)
49 TITLE:=GPIO-based bitbanging SPI Master
50 DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
51 KCONFIG:=CONFIG_SPI_GPIO
52 FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
53 AUTOLOAD:=$(call AutoProbe,spi-gpio)
54 endef
55
56 define KernelPackage/spi-gpio/description
57 This package contains the GPIO-based bitbanging SPI Master
58 endef
59
60 $(eval $(call KernelPackage,spi-gpio))
61
62 define KernelPackage/spi-dev
63 SUBMENU:=$(SPI_MENU)
64 TITLE:=User mode SPI device driver
65 KCONFIG:=CONFIG_SPI_SPIDEV \
66 CONFIG_SPI=y \
67 CONFIG_SPI_MASTER=y
68 FILES:=$(LINUX_DIR)/drivers/spi/spidev.ko
69 AUTOLOAD:=$(call AutoProbe,spidev)
70 endef
71
72 define KernelPackage/spi-dev/description
73 This package contains the user mode SPI device driver
74 endef
75
76 $(eval $(call KernelPackage,spi-dev))