spi.mk 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. $(LINUX_DIR)/drivers/mmc/host/of_mmc_spi.ko \
  17. $(LINUX_DIR)/drivers/mmc/host/mmc_spi.ko
  18. AUTOLOAD:=$(call AutoProbe,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))
  61. define KernelPackage/spi-dw
  62. SUBMENU:=$(SPI_MENU)
  63. TITLE:=DesignWare SPI controller driver (core)
  64. KCONFIG:=\
  65. CONFIG_SPI=y \
  66. CONFIG_SPI_DESIGNWARE \
  67. CONFIG_SPI_DYNAMIC=y \
  68. CONFIG_SPI_MASTER=y
  69. FILES:=\
  70. $(LINUX_DIR)/drivers/spi/spi-dw.ko
  71. AUTOLOAD:=$(call AutoProbe,spi-dw)
  72. endef
  73. define KernelPackage/spi-dw/description
  74. This package contains the DesignWare SPI core driver.
  75. endef
  76. $(eval $(call KernelPackage,spi-dw))
  77. define KernelPackage/spi-dw-mmio
  78. SUBMENU:=$(SPI_MENU)
  79. TITLE:=DesignWare SPI controller driver (MMIO)
  80. DEPENDS:=+kmod-spi-dw
  81. KCONFIG:=\
  82. CONFIG_SPI_DW_MMIO
  83. FILES:=\
  84. $(LINUX_DIR)/drivers/spi/spi-dw-mmio.ko
  85. AUTOLOAD:=$(call AutoProbe,spi-dw-mmio)
  86. endef
  87. define KernelPackage/spi-dw-mmio/description
  88. This package contains the DesignWare SPI MMIO driver.
  89. endef
  90. $(eval $(call KernelPackage,spi-dw-mmio))