0c187b3a2fbf0918230f8f3811e526c6a6e3da8b
[openwrt/svn-archive/archive.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 FILES:=$(LINUX_DIR)/drivers/spi/spi_bitbang.ko
35 AUTOLOAD:=$(call AutoLoad,91,spi_bitbang)
36 endef
37
38 define KernelPackage/spi-bitbang/description
39 This package contains the SPI bitbanging library
40 endef
41
42 $(eval $(call KernelPackage,spi-bitbang))
43
44
45 define KernelPackage/spi-gpio-old
46 SUBMENU:=$(SPI_MENU)
47 TITLE:=Old GPIO based bitbanging SPI controller (DEPRECATED)
48 DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
49 KCONFIG:=CONFIG_SPI_GPIO_OLD
50 FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio_old.ko
51 AUTOLOAD:=$(call AutoLoad,92,spi_gpio_old)
52 endef
53
54 define KernelPackage/spi-gpio-old/description
55 This package contains the GPIO based bitbanging SPI controller driver
56 endef
57
58 $(eval $(call KernelPackage,spi-gpio-old))
59
60 define KernelPackage/spi-gpio
61 SUBMENU:=$(SPI_MENU)
62 TITLE:=GPIO-based bitbanging SPI Master
63 DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
64 KCONFIG:=CONFIG_SPI_GPIO
65 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1.0)),1)
66 FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
67 AUTOLOAD:=$(call AutoLoad,92,spi-gpio)
68 else
69 FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio.ko
70 AUTOLOAD:=$(call AutoLoad,92,spi_gpio)
71 endif
72 endef
73
74 define KernelPackage/spi-gpio/description
75 This package contains the GPIO-based bitbanging SPI Master
76 endef
77
78 $(eval $(call KernelPackage,spi-gpio))
79
80 define KernelPackage/spi-dev
81 SUBMENU:=$(SPI_MENU)
82 TITLE:=User mode SPI device driver
83 KCONFIG:=CONFIG_SPI_SPIDEV \
84 CONFIG_SPI=y \
85 CONFIG_SPI_MASTER=y
86 FILES:=$(LINUX_DIR)/drivers/spi/spidev.ko
87 AUTOLOAD:=$(call AutoLoad,93,spidev)
88 endef
89
90 define KernelPackage/spi-dev/description
91 This package contains the user mode SPI device driver
92 endef
93
94 $(eval $(call KernelPackage,spi-dev))
95
96
97 define KernelPackage/spi-vsc7385
98 SUBMENU:=$(SPI_MENU)
99 TITLE:=Vitesse VSC7385 ethernet switch driver
100 DEPENDS:=@TARGET_ar71xx
101 KCONFIG:=CONFIG_SPI_VSC7385
102 FILES:=$(LINUX_DIR)/drivers/spi/spi_vsc7385.ko
103 AUTOLOAD:=$(call AutoLoad,93,spi_vsc7385)
104 endef
105
106 define KernelPackage/spi-vsc7385/description
107 This package contains the SPI driver for the Vitesse VSC7385 ethernet switch.
108 endef
109
110 $(eval $(call KernelPackage,spi-vsc7385))