package/kernel: add package for MTD testing modules
[openwrt.git] / package / kernel / 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:=$(LINUX_DIR)/drivers/mmc/host/mmc_spi.ko
18 AUTOLOAD:=$(call AutoLoad,90,mmc_spi)
19 endef
20
21 define KernelPackage/mmc-spi/description
22 Kernel support for MMC/SD over SPI
23 endef
24
25 $(eval $(call KernelPackage,mmc-spi))
26
27
28 define KernelPackage/spi-bitbang
29 SUBMENU:=$(SPI_MENU)
30 TITLE:=Serial Peripheral Interface bitbanging library
31 KCONFIG:=CONFIG_SPI_BITBANG \
32 CONFIG_SPI=y \
33 CONFIG_SPI_MASTER=y
34 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1)),1)
35 FILES:=$(LINUX_DIR)/drivers/spi/spi-bitbang.ko
36 AUTOLOAD:=$(call AutoLoad,91,spi-bitbang)
37 else
38 FILES:=$(LINUX_DIR)/drivers/spi/spi_bitbang.ko
39 AUTOLOAD:=$(call AutoLoad,91,spi_bitbang)
40 endif
41 endef
42
43 define KernelPackage/spi-bitbang/description
44 This package contains the SPI bitbanging library
45 endef
46
47 $(eval $(call KernelPackage,spi-bitbang))
48
49
50 define KernelPackage/spi-gpio-old
51 SUBMENU:=$(SPI_MENU)
52 TITLE:=Old GPIO based bitbanging SPI controller (DEPRECATED)
53 DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
54 KCONFIG:=CONFIG_SPI_GPIO_OLD
55 FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio_old.ko
56 AUTOLOAD:=$(call AutoLoad,92,spi_gpio_old)
57 endef
58
59 define KernelPackage/spi-gpio-old/description
60 This package contains the GPIO based bitbanging SPI controller driver
61 endef
62
63 $(eval $(call KernelPackage,spi-gpio-old))
64
65 define KernelPackage/spi-gpio
66 SUBMENU:=$(SPI_MENU)
67 TITLE:=GPIO-based bitbanging SPI Master
68 DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
69 KCONFIG:=CONFIG_SPI_GPIO
70 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1)),1)
71 FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
72 AUTOLOAD:=$(call AutoLoad,92,spi-gpio)
73 else
74 FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio.ko
75 AUTOLOAD:=$(call AutoLoad,92,spi_gpio)
76 endif
77 endef
78
79 define KernelPackage/spi-gpio/description
80 This package contains the GPIO-based bitbanging SPI Master
81 endef
82
83 $(eval $(call KernelPackage,spi-gpio))
84
85 define KernelPackage/spi-dev
86 SUBMENU:=$(SPI_MENU)
87 TITLE:=User mode SPI device driver
88 KCONFIG:=CONFIG_SPI_SPIDEV \
89 CONFIG_SPI=y \
90 CONFIG_SPI_MASTER=y
91 FILES:=$(LINUX_DIR)/drivers/spi/spidev.ko
92 AUTOLOAD:=$(call AutoLoad,93,spidev)
93 endef
94
95 define KernelPackage/spi-dev/description
96 This package contains the user mode SPI device driver
97 endef
98
99 $(eval $(call KernelPackage,spi-dev))
100
101
102 define KernelPackage/spi-vsc7385
103 SUBMENU:=$(SPI_MENU)
104 TITLE:=Vitesse VSC7385 ethernet switch driver
105 DEPENDS:=@TARGET_ar71xx
106 KCONFIG:=CONFIG_SPI_VSC7385
107 FILES:=$(LINUX_DIR)/drivers/spi/spi-vsc7385.ko
108 AUTOLOAD:=$(call AutoLoad,93,spi-vsc7385)
109 endef
110
111 define KernelPackage/spi-vsc7385/description
112 This package contains the SPI driver for the Vitesse VSC7385 ethernet switch.
113 endef
114
115 $(eval $(call KernelPackage,spi-vsc7385))
This page took 0.045202 seconds and 5 git commands to generate.