spi.mk 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1.0)),1)
  53. FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
  54. AUTOLOAD:=$(call AutoLoad,92,spi-gpio)
  55. else
  56. FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio.ko
  57. AUTOLOAD:=$(call AutoLoad,92,spi_gpio)
  58. endif
  59. endef
  60. define KernelPackage/spi-gpio/description
  61. This package contains the GPIO-based bitbanging SPI Master
  62. endef
  63. $(eval $(call KernelPackage,spi-gpio))
  64. define KernelPackage/spi-dev
  65. SUBMENU:=$(SPI_MENU)
  66. TITLE:=User mode SPI device driver
  67. KCONFIG:=CONFIG_SPI_SPIDEV \
  68. CONFIG_SPI=y \
  69. CONFIG_SPI_MASTER=y
  70. FILES:=$(LINUX_DIR)/drivers/spi/spidev.ko
  71. AUTOLOAD:=$(call AutoLoad,93,spidev)
  72. endef
  73. define KernelPackage/spi-dev/description
  74. This package contains the user mode SPI device driver
  75. endef
  76. $(eval $(call KernelPackage,spi-dev))
  77. define KernelPackage/spi-vsc7385
  78. SUBMENU:=$(SPI_MENU)
  79. TITLE:=Vitesse VSC7385 ethernet switch driver
  80. DEPENDS:=@TARGET_ar71xx
  81. KCONFIG:=CONFIG_SPI_VSC7385
  82. FILES:=$(LINUX_DIR)/drivers/spi/spi_vsc7385.ko
  83. AUTOLOAD:=$(call AutoLoad,93,spi_vsc7385)
  84. endef
  85. define KernelPackage/spi-vsc7385/description
  86. This package contains the SPI driver for the Vitesse VSC7385 ethernet switch.
  87. endef
  88. $(eval $(call KernelPackage,spi-vsc7385))