1
0

spi.mk 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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
  37. SUBMENU:=$(SPI_MENU)
  38. TITLE:=GPIO-based bitbanging SPI Master
  39. DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
  40. KCONFIG:=CONFIG_SPI_GPIO
  41. FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
  42. AUTOLOAD:=$(call AutoProbe,spi-gpio)
  43. endef
  44. define KernelPackage/spi-gpio/description
  45. This package contains the GPIO-based bitbanging SPI Master
  46. endef
  47. $(eval $(call KernelPackage,spi-gpio))
  48. define KernelPackage/spi-dev
  49. SUBMENU:=$(SPI_MENU)
  50. TITLE:=User mode SPI device driver
  51. KCONFIG:=CONFIG_SPI_SPIDEV \
  52. CONFIG_SPI=y \
  53. CONFIG_SPI_MASTER=y
  54. FILES:=$(LINUX_DIR)/drivers/spi/spidev.ko
  55. AUTOLOAD:=$(call AutoProbe,spidev)
  56. endef
  57. define KernelPackage/spi-dev/description
  58. This package contains the user mode SPI device driver
  59. endef
  60. $(eval $(call KernelPackage,spi-dev))