spi.mk 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. SPI_MENU:=SPI Support
  8. define KernelPackage/mmc-spi
  9. SUBMENU:=$(SPI_MENU)
  10. TITLE:=MMC/SD over SPI Support
  11. DEPENDS:=+kmod-mmc +kmod-lib-crc-itu-t +kmod-lib-crc7
  12. KCONFIG:=CONFIG_MMC_SPI \
  13. CONFIG_SPI=y \
  14. CONFIG_SPI_MASTER=y
  15. FILES:=$(LINUX_DIR)/drivers/mmc/host/mmc_spi.ko
  16. AUTOLOAD:=$(call AutoLoad,90,mmc_spi)
  17. endef
  18. define KernelPackage/mmc-spi/description
  19. Kernel support for MMC/SD over SPI
  20. endef
  21. $(eval $(call KernelPackage,mmc-spi))
  22. define KernelPackage/spi-bitbang
  23. SUBMENU:=$(SPI_MENU)
  24. TITLE:=Serial Peripheral Interface bitbanging library
  25. KCONFIG:=CONFIG_SPI_BITBANG \
  26. CONFIG_SPI=y \
  27. CONFIG_SPI_MASTER=y
  28. FILES:=$(LINUX_DIR)/drivers/spi/spi-bitbang.ko
  29. AUTOLOAD:=$(call AutoLoad,91,spi-bitbang)
  30. endef
  31. define KernelPackage/spi-bitbang/description
  32. This package contains the SPI bitbanging library
  33. endef
  34. $(eval $(call KernelPackage,spi-bitbang))
  35. define KernelPackage/spi-gpio-old
  36. SUBMENU:=$(SPI_MENU)
  37. TITLE:=Old GPIO based bitbanging SPI controller (DEPRECATED)
  38. DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
  39. KCONFIG:=CONFIG_SPI_GPIO_OLD
  40. FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio_old.ko
  41. AUTOLOAD:=$(call AutoLoad,92,spi_gpio_old)
  42. endef
  43. define KernelPackage/spi-gpio-old/description
  44. This package contains the GPIO based bitbanging SPI controller driver
  45. endef
  46. $(eval $(call KernelPackage,spi-gpio-old))
  47. define KernelPackage/spi-gpio
  48. SUBMENU:=$(SPI_MENU)
  49. TITLE:=GPIO-based bitbanging SPI Master
  50. DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
  51. KCONFIG:=CONFIG_SPI_GPIO
  52. FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
  53. AUTOLOAD:=$(call AutoLoad,92,spi-gpio)
  54. endef
  55. define KernelPackage/spi-gpio/description
  56. This package contains the GPIO-based bitbanging SPI Master
  57. endef
  58. $(eval $(call KernelPackage,spi-gpio))
  59. define KernelPackage/spi-dev
  60. SUBMENU:=$(SPI_MENU)
  61. TITLE:=User mode SPI device driver
  62. KCONFIG:=CONFIG_SPI_SPIDEV \
  63. CONFIG_SPI=y \
  64. CONFIG_SPI_MASTER=y
  65. FILES:=$(LINUX_DIR)/drivers/spi/spidev.ko
  66. AUTOLOAD:=$(call AutoLoad,93,spidev)
  67. endef
  68. define KernelPackage/spi-dev/description
  69. This package contains the user mode SPI device driver
  70. endef
  71. $(eval $(call KernelPackage,spi-dev))