spi.mk 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 AutoLoad,90,$(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. AUTOLOAD:=$(call AutoLoad,91,spi-bitbang)
  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-old
  38. SUBMENU:=$(SPI_MENU)
  39. TITLE:=Old GPIO based bitbanging SPI controller (DEPRECATED)
  40. DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
  41. KCONFIG:=CONFIG_SPI_GPIO_OLD
  42. FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio_old.ko
  43. AUTOLOAD:=$(call AutoLoad,92,spi_gpio_old)
  44. endef
  45. define KernelPackage/spi-gpio-old/description
  46. This package contains the GPIO based bitbanging SPI controller driver
  47. endef
  48. $(eval $(call KernelPackage,spi-gpio-old))
  49. define KernelPackage/spi-gpio
  50. SUBMENU:=$(SPI_MENU)
  51. TITLE:=GPIO-based bitbanging SPI Master
  52. DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
  53. KCONFIG:=CONFIG_SPI_GPIO
  54. FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
  55. AUTOLOAD:=$(call AutoLoad,92,spi-gpio)
  56. endef
  57. define KernelPackage/spi-gpio/description
  58. This package contains the GPIO-based bitbanging SPI Master
  59. endef
  60. $(eval $(call KernelPackage,spi-gpio))
  61. define KernelPackage/spi-dev
  62. SUBMENU:=$(SPI_MENU)
  63. TITLE:=User mode SPI device driver
  64. KCONFIG:=CONFIG_SPI_SPIDEV \
  65. CONFIG_SPI=y \
  66. CONFIG_SPI_MASTER=y
  67. FILES:=$(LINUX_DIR)/drivers/spi/spidev.ko
  68. AUTOLOAD:=$(call AutoLoad,93,spidev)
  69. endef
  70. define KernelPackage/spi-dev/description
  71. This package contains the user mode SPI device driver
  72. endef
  73. $(eval $(call KernelPackage,spi-dev))