spi.mk 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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))
  73. define KernelPackage/spi-omap-24xx
  74. SUBMENU:=$(SPI_MENU)
  75. TITLE:=SPI omap 24xx
  76. DEPENDS:=@(TARGET_omap24xx||TARGET_omap)
  77. KCONFIG:=CONFIG_SPI_OMAP24XX \
  78. CONFIG_SPI=y \
  79. CONFIG_SPI_MASTER=y
  80. FILES:=$(LINUX_DIR)/drivers/spi/spi-omap2-mcspi.ko
  81. AUTOLOAD:=$(call AutoProbe,spi-omap2-mcspi)
  82. endef
  83. define KernelPackage/spi-dev/description
  84. This package contains the user mode SPI device driver
  85. endef
  86. $(eval $(call KernelPackage,spi-omap-24xx))