spi.mk 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1)),1)
  29. FILES:=$(LINUX_DIR)/drivers/spi/spi-bitbang.ko
  30. AUTOLOAD:=$(call AutoLoad,91,spi-bitbang)
  31. else
  32. FILES:=$(LINUX_DIR)/drivers/spi/spi_bitbang.ko
  33. AUTOLOAD:=$(call AutoLoad,91,spi_bitbang)
  34. endif
  35. endef
  36. define KernelPackage/spi-bitbang/description
  37. This package contains the SPI bitbanging library
  38. endef
  39. $(eval $(call KernelPackage,spi-bitbang))
  40. define KernelPackage/spi-gpio-old
  41. SUBMENU:=$(SPI_MENU)
  42. TITLE:=Old GPIO based bitbanging SPI controller (DEPRECATED)
  43. DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
  44. KCONFIG:=CONFIG_SPI_GPIO_OLD
  45. FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio_old.ko
  46. AUTOLOAD:=$(call AutoLoad,92,spi_gpio_old)
  47. endef
  48. define KernelPackage/spi-gpio-old/description
  49. This package contains the GPIO based bitbanging SPI controller driver
  50. endef
  51. $(eval $(call KernelPackage,spi-gpio-old))
  52. define KernelPackage/spi-gpio
  53. SUBMENU:=$(SPI_MENU)
  54. TITLE:=GPIO-based bitbanging SPI Master
  55. DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
  56. KCONFIG:=CONFIG_SPI_GPIO
  57. ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1)),1)
  58. FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
  59. AUTOLOAD:=$(call AutoLoad,92,spi-gpio)
  60. else
  61. FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio.ko
  62. AUTOLOAD:=$(call AutoLoad,92,spi_gpio)
  63. endif
  64. endef
  65. define KernelPackage/spi-gpio/description
  66. This package contains the GPIO-based bitbanging SPI Master
  67. endef
  68. $(eval $(call KernelPackage,spi-gpio))
  69. define KernelPackage/spi-dev
  70. SUBMENU:=$(SPI_MENU)
  71. TITLE:=User mode SPI device driver
  72. KCONFIG:=CONFIG_SPI_SPIDEV \
  73. CONFIG_SPI=y \
  74. CONFIG_SPI_MASTER=y
  75. FILES:=$(LINUX_DIR)/drivers/spi/spidev.ko
  76. AUTOLOAD:=$(call AutoLoad,93,spidev)
  77. endef
  78. define KernelPackage/spi-dev/description
  79. This package contains the user mode SPI device driver
  80. endef
  81. $(eval $(call KernelPackage,spi-dev))
  82. define KernelPackage/spi-vsc7385
  83. SUBMENU:=$(SPI_MENU)
  84. TITLE:=Vitesse VSC7385 ethernet switch driver
  85. DEPENDS:=@TARGET_ar71xx
  86. KCONFIG:=CONFIG_SPI_VSC7385
  87. FILES:=$(LINUX_DIR)/drivers/spi/spi-vsc7385.ko
  88. AUTOLOAD:=$(call AutoLoad,93,spi-vsc7385)
  89. endef
  90. define KernelPackage/spi-vsc7385/description
  91. This package contains the SPI driver for the Vitesse VSC7385 ethernet switch.
  92. endef
  93. $(eval $(call KernelPackage,spi-vsc7385))