Root/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
8SPI_MENU:=SPI Support
9
10define 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)
19endef
20
21define KernelPackage/mmc-spi/description
22 Kernel support for MMC/SD over SPI
23endef
24
25$(eval $(call KernelPackage,mmc-spi))
26
27
28define 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)
36endef
37
38define KernelPackage/spi-bitbang/description
39 This package contains the SPI bitbanging library
40endef
41
42$(eval $(call KernelPackage,spi-bitbang))
43
44
45define 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)
52endef
53
54define KernelPackage/spi-gpio-old/description
55 This package contains the GPIO based bitbanging SPI controller driver
56endef
57
58$(eval $(call KernelPackage,spi-gpio-old))
59
60define 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  FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
66  AUTOLOAD:=$(call AutoLoad,92,spi-gpio)
67endef
68
69define KernelPackage/spi-gpio/description
70 This package contains the GPIO-based bitbanging SPI Master
71endef
72
73$(eval $(call KernelPackage,spi-gpio))
74
75define KernelPackage/spi-dev
76  SUBMENU:=$(SPI_MENU)
77  TITLE:=User mode SPI device driver
78  KCONFIG:=CONFIG_SPI_SPIDEV \
79          CONFIG_SPI=y \
80          CONFIG_SPI_MASTER=y
81  FILES:=$(LINUX_DIR)/drivers/spi/spidev.ko
82  AUTOLOAD:=$(call AutoLoad,93,spidev)
83endef
84
85define KernelPackage/spi-dev/description
86 This package contains the user mode SPI device driver
87endef
88
89$(eval $(call KernelPackage,spi-dev))
90
91

Archive Download this file



interactive