1
0

spi.mk 2.3 KB

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