spi.mk 2.0 KB

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