0b535a8cb485cc1b36fb68a96403e7af5a8a287b
[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) \
19 $(LINUX_DIR)/drivers/mmc/host/mmc_spi.ko
20 AUTOLOAD:=$(call AutoProbe,$(if $(CONFIG_OF),of_mmc_spi) mmc_spi)
21 endef
22
23 define KernelPackage/mmc-spi/description
24 Kernel support for MMC/SD over SPI
25 endef
26
27 $(eval $(call KernelPackage,mmc-spi))
28
29
30 define KernelPackage/spi-bitbang
31 SUBMENU:=$(SPI_MENU)
32 TITLE:=Serial Peripheral Interface bitbanging library
33 KCONFIG:=CONFIG_SPI_BITBANG \
34 CONFIG_SPI=y \
35 CONFIG_SPI_MASTER=y
36 FILES:=$(LINUX_DIR)/drivers/spi/spi-bitbang.ko
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.ko
52 AUTOLOAD:=$(call AutoProbe,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
62 define KernelPackage/spi-gpio
63 SUBMENU:=$(SPI_MENU)
64 TITLE:=GPIO-based bitbanging SPI Master
65 DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
66 KCONFIG:=CONFIG_SPI_GPIO
67 FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
68 AUTOLOAD:=$(call AutoProbe,spi-gpio)
69 endef
70
71 define KernelPackage/spi-gpio/description
72 This package contains the GPIO-based bitbanging SPI Master
73 endef
74
75 $(eval $(call KernelPackage,spi-gpio))
76
77 define KernelPackage/spi-dev
78 SUBMENU:=$(SPI_MENU)
79 TITLE:=User mode SPI device driver
80 KCONFIG:=CONFIG_SPI_SPIDEV \
81 CONFIG_SPI=y \
82 CONFIG_SPI_MASTER=y
83 FILES:=$(LINUX_DIR)/drivers/spi/spidev.ko
84 AUTOLOAD:=$(call AutoProbe,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 define KernelPackage/spi-omap-24xx
94 SUBMENU:=$(SPI_MENU)
95 TITLE:=SPI omap 24xx
96 DEPENDS:=@TARGET_omap24xx
97 KCONFIG:=CONFIG_SPI_OMAP24XX \
98 CONFIG_SPI=y \
99 CONFIG_SPI_MASTER=y
100 FILES:=$(LINUX_DIR)/drivers/spi/spi-omap2-mcspi.ko
101 AUTOLOAD:=$(call AutoProbe,spi-omap2-mcspi)
102 endef
103
104 define KernelPackage/spi-dev/description
105 This package contains the user mode SPI device driver
106 endef
107
108 $(eval $(call KernelPackage,spi-omap-24xx))