94c98548e9042bf507e84376d42c155126885974
[openwrt.git] / package / kernel / modules / spi.mk
1 #
2 # Copyright (C) 2006-2010 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:=@LINUX_2_6 +kmod-mmc +kmod-crc-itu-t +kmod-crc7
14 KCONFIG:=CONFIG_MMC_SPI \
15 CONFIG_SPI=y \
16 CONFIG_SPI_MASTER=y
17 FILES:=$(LINUX_DIR)/drivers/mmc/host/mmc_spi.$(LINUX_KMOD_SUFFIX)
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 DEPENDS:=@LINUX_2_6
32 KCONFIG:=CONFIG_SPI_BITBANG \
33 CONFIG_SPI=y \
34 CONFIG_SPI_MASTER=y
35 FILES:=$(LINUX_DIR)/drivers/spi/spi_bitbang.$(LINUX_KMOD_SUFFIX)
36 AUTOLOAD:=$(call AutoLoad,91,spi_bitbang)
37 endef
38
39 define KernelPackage/spi-bitbang/description
40 This package contains the SPI bitbanging library
41 endef
42
43 $(eval $(call KernelPackage,spi-bitbang))
44
45
46 define KernelPackage/spi-gpio-old
47 SUBMENU:=$(SPI_MENU)
48 TITLE:=Old GPIO based bitbanging SPI controller (DEPRECATED)
49 DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
50 KCONFIG:=CONFIG_SPI_GPIO_OLD
51 FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio_old.$(LINUX_KMOD_SUFFIX)
52 AUTOLOAD:=$(call AutoLoad,92,spi_gpio_old)
53 endef
54
55 define KernelPackage/spi-gpio-old/description
56 This package contains the GPIO based bitbanging SPI controller driver
57 endef
58
59 $(eval $(call KernelPackage,spi-gpio-old))
60
61 define KernelPackage/spi-gpio
62 SUBMENU:=$(SPI_MENU)
63 TITLE:=GPIO-based bitbanging SPI Master
64 DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
65 KCONFIG:=CONFIG_SPI_GPIO
66 FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio.$(LINUX_KMOD_SUFFIX)
67 AUTOLOAD:=$(call AutoLoad,92,spi_gpio)
68 endef
69
70 define KernelPackage/spi-gpio/description
71 This package contains the GPIO-based bitbanging SPI Master
72 endef
73
74 $(eval $(call KernelPackage,spi-gpio))
75
76 define KernelPackage/spi-dev
77 SUBMENU:=$(SPI_MENU)
78 TITLE:=User mode SPI device driver
79 DEPENDS:=@LINUX_2_6
80 KCONFIG:=CONFIG_SPI_SPIDEV \
81 CONFIG_SPI=y \
82 CONFIG_SPI_MASTER=y
83 FILES:=$(LINUX_DIR)/drivers/spi/spidev.$(LINUX_KMOD_SUFFIX)
84 AUTOLOAD:=$(call AutoLoad,93,spidev)
85 endef
86
87 define KernelPackage/spi-dev/description
88 This package contains the user mode SPI device driver
89 endef
90
91 $(eval $(call KernelPackage,spi-dev))
92
93
94 define KernelPackage/spi-vsc7385
95 SUBMENU:=$(SPI_MENU)
96 TITLE:=Vitesse VSC7385 ethernet switch driver
97 DEPENDS:=@TARGET_ar71xx
98 KCONFIG:=CONFIG_SPI_VSC7385
99 FILES:=$(LINUX_DIR)/drivers/spi/spi_vsc7385.$(LINUX_KMOD_SUFFIX)
100 AUTOLOAD:=$(call AutoLoad,93,spi_vsc7385)
101 endef
102
103 define KernelPackage/spi-vsc7385/description
104 This package contains the SPI driver for the Vitesse VSC7385 ethernet switch.
105 endef
106
107 $(eval $(call KernelPackage,spi-vsc7385))
This page took 0.043263 seconds and 3 git commands to generate.