iio.mk 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. IIO_MENU:=Industrial I/O Modules
  6. define KernelPackage/iio-core
  7. SUBMENU:=$(IIO_MENU)
  8. TITLE:=Industrial IO core
  9. KCONFIG:= \
  10. CONFIG_IIO \
  11. CONFIG_IIO_BUFFER=y \
  12. CONFIG_IIO_KFIFO_BUF \
  13. CONFIG_IIO_TRIGGER=y \
  14. CONFIG_IIO_TRIGGERED_BUFFER
  15. FILES:= \
  16. $(LINUX_DIR)/drivers/iio/industrialio.ko \
  17. $(if $(CONFIG_IIO_TRIGGERED_BUFFER),$(LINUX_DIR)/drivers/iio/[email protected]) \
  18. $(if $(CONFIG_IIO_TRIGGERED_BUFFER),$(LINUX_DIR)/drivers/iio/buffer/[email protected]) \
  19. $(LINUX_DIR)/drivers/iio/[email protected] \
  20. $(LINUX_DIR)/drivers/iio/buffer/[email protected]
  21. AUTOLOAD:=$(call AutoLoad,55,industrialio kfifo_buf industrialio-triggered-buffer)
  22. endef
  23. define KernelPackage/iio-core/description
  24. The industrial I/O subsystem provides a unified framework for
  25. drivers for many different types of embedded sensors using a
  26. number of different physical interfaces (i2c, spi, etc)
  27. endef
  28. $(eval $(call KernelPackage,iio-core))
  29. define KernelPackage/iio-ad799x
  30. SUBMENU:=$(IIO_MENU)
  31. DEPENDS:=+kmod-i2c-core +kmod-iio-core
  32. TITLE:=Analog Devices AD799x ADC driver
  33. KCONFIG:= \
  34. CONFIG_AD799X_RING_BUFFER=y \
  35. CONFIG_AD799X
  36. FILES:=$(LINUX_DIR)/drivers/iio/adc/ad799x.ko
  37. AUTOLOAD:=$(call AutoLoad,56,ad799x)
  38. endef
  39. define KernelPackage/iio-ad799x/description
  40. support for Analog Devices:
  41. ad7991, ad7995, ad7999, ad7992, ad7993, ad7994, ad7997, ad7998
  42. i2c analog to digital converters (ADC).
  43. endef
  44. $(eval $(call KernelPackage,iio-ad799x))
  45. define KernelPackage/iio-dht11
  46. SUBMENU:=$(IIO_MENU)
  47. DEPENDS:=+kmod-iio-core @GPIO_SUPPORT @USES_DEVICETREE
  48. TITLE:=DHT11 (and compatible) humidity and temperature sensors
  49. KCONFIG:= \
  50. CONFIG_DHT11
  51. FILES:=$(LINUX_DIR)/drivers/iio/humidity/dht11.ko
  52. AUTOLOAD:=$(call AutoLoad,56,dht11)
  53. endef
  54. define KernelPackage/iio-dht11/description
  55. support for DHT11 and DHT22 digitial humidity and temperature sensors
  56. attached at GPIO lines. You will need a custom device tree file to
  57. specify the GPIO line to use.
  58. endef
  59. $(eval $(call KernelPackage,iio-dht11))
  60. define KernelPackage/iio-bmp280
  61. SUBMENU:=$(IIO_MENU)
  62. TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor
  63. DEPENDS:=@(LINUX_4_9||LINUX_4_14) +kmod-iio-core +kmod-regmap
  64. KCONFIG:=CONFIG_BMP280
  65. FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280.ko
  66. endef
  67. define KernelPackage/iio-bmp280/description
  68. This driver adds support for Bosch Sensortec BMP180 and BMP280 pressure and
  69. temperature sensors. Also supports the BME280 with an additional humidity
  70. sensor channel.
  71. endef
  72. $(eval $(call KernelPackage,iio-bmp280))
  73. define KernelPackage/iio-bmp280-i2c
  74. SUBMENU:=$(IIO_MENU)
  75. TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor (I2C)
  76. DEPENDS:=+kmod-iio-bmp280 +kmod-i2c-core
  77. KCONFIG:=CONFIG_BMP280_I2C
  78. FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280-i2c.ko
  79. AUTOLOAD:=$(call AutoProbe,iio-bmp280-i2c)
  80. endef
  81. define KernelPackage/iio-bmp280-i2c/description
  82. This driver adds support for Bosch Sensortec's digital pressure and
  83. temperature sensor connected via I2C.
  84. endef
  85. $(eval $(call KernelPackage,iio-bmp280-i2c))
  86. define KernelPackage/iio-bmp280-spi
  87. SUBMENU:=$(IIO_MENU)
  88. TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor (SPI)
  89. DEPENDS:=+kmod-iio-bmp280 +kmod-spi-bitbang
  90. KCONFIG:=CONFIG_BMP280_SPI
  91. FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280-spi.ko
  92. AUTOLOAD:=$(call AutoProbe,iio-bmp280-spi)
  93. endef
  94. define KernelPackage/iio-bmp280-spi/description
  95. This driver adds support for Bosch Sensortec's digital pressure and
  96. temperature sensor connected via SPI.
  97. endef
  98. $(eval $(call KernelPackage,iio-bmp280-spi))