hwmon.mk 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. HWMON_MENU:=Hardware Monitoring Support
  8. define KernelPackage/hwmon-core
  9. SUBMENU:=$(HWMON_MENU)
  10. TITLE:=Hardware monitoring support
  11. KCONFIG:= \
  12. CONFIG_HWMON \
  13. CONFIG_HWMON_DEBUG_CHIP=n
  14. FILES:= \
  15. $(LINUX_DIR)/drivers/hwmon/hwmon.ko
  16. endef
  17. define KernelPackage/hwmon-core/description
  18. Kernel modules for hardware monitoring
  19. endef
  20. $(eval $(call KernelPackage,hwmon-core))
  21. define AddDepends/hwmon
  22. SUBMENU:=$(HWMON_MENU)
  23. DEPENDS:=kmod-hwmon-core $(1)
  24. endef
  25. define KernelPackage/hwmon-vid
  26. TITLE:=VID/VRM/VRD voltage conversion module.
  27. KCONFIG:=CONFIG_HWMON_VID
  28. FILES:=$(LINUX_DIR)/drivers/hwmon/hwmon-vid.ko
  29. AUTOLOAD:=$(call AutoLoad,41,hwmon-vid)
  30. $(call AddDepends/hwmon,)
  31. endef
  32. define KernelPackage/hwmon-vid/description
  33. VID/VRM/VRD voltage conversion module for hardware monitoring
  34. endef
  35. $(eval $(call KernelPackage,hwmon-vid))
  36. define KernelPackage/hwmon-adt7410
  37. TITLE:=ADT7410 monitoring support
  38. ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.10.0)),1)
  39. KCONFIG:= \
  40. CONFIG_SENSORS_ADT7X10 \
  41. CONFIG_SENSORS_ADT7410
  42. FILES:= \
  43. $(LINUX_DIR)/drivers/hwmon/adt7x10.ko \
  44. $(LINUX_DIR)/drivers/hwmon/adt7410.ko
  45. AUTOLOAD:=$(call AutoLoad,60,adt7x10 adt7410)
  46. else
  47. KCONFIG:=CONFIG_SENSORS_ADT7410
  48. FILES:=$(LINUX_DIR)/drivers/hwmon/adt7410.ko
  49. AUTOLOAD:=$(call AutoLoad,60,adt7410)
  50. endif
  51. $(call AddDepends/hwmon,+kmod-i2c-core @!(LINUX_3_3||LINUX_3_6))
  52. endef
  53. define KernelPackage/hwmon-adt7410/description
  54. Kernel module for ADT7410/7420 I2C thermal monitor chip
  55. endef
  56. $(eval $(call KernelPackage,hwmon-adt7410))
  57. define KernelPackage/hwmon-adt7475
  58. TITLE:=ADT7473/7475/7476/7490 monitoring support
  59. KCONFIG:=CONFIG_SENSORS_ADT7475
  60. FILES:=$(LINUX_DIR)/drivers/hwmon/adt7475.ko
  61. AUTOLOAD:=$(call AutoProbe,adt7475)
  62. $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
  63. endef
  64. define KernelPackage/hwmon-adt7475/description
  65. Kernel module for ADT7473/7475/7476/7490 thermal monitor chip
  66. endef
  67. $(eval $(call KernelPackage,hwmon-adt7475))
  68. define KernelPackage/hwmon-ina2xx
  69. TITLE:=INA2XX monitoring support
  70. KCONFIG:=CONFIG_SENSORS_INA2XX
  71. FILES:=$(LINUX_DIR)/drivers/hwmon/ina2xx.ko
  72. AUTOLOAD:=$(call AutoProbe,ina2xx)
  73. $(call AddDepends/hwmon,+kmod-i2c-core)
  74. endef
  75. define KernelPackage/hwmon-ina2xx/description
  76. Kernel module for ina2xx dc current monitor chips
  77. endef
  78. $(eval $(call KernelPackage,hwmon-ina2xx))
  79. define KernelPackage/hwmon-lm63
  80. TITLE:=LM63/64 monitoring support
  81. KCONFIG:=CONFIG_SENSORS_LM63
  82. FILES:=$(LINUX_DIR)/drivers/hwmon/lm63.ko
  83. AUTOLOAD:=$(call AutoProbe,lm63)
  84. $(call AddDepends/hwmon,+kmod-i2c-core)
  85. endef
  86. define KernelPackage/hwmon-lm63/description
  87. Kernel module for lm63 and lm64 thermal monitor chip
  88. endef
  89. $(eval $(call KernelPackage,hwmon-lm63))
  90. define KernelPackage/hwmon-lm75
  91. TITLE:=LM75 monitoring support
  92. KCONFIG:=CONFIG_SENSORS_LM75
  93. FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.ko
  94. AUTOLOAD:=$(call AutoProbe,lm75)
  95. $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal)
  96. endef
  97. define KernelPackage/hwmon-lm75/description
  98. Kernel module for lm75 thermal monitor chip
  99. endef
  100. $(eval $(call KernelPackage,hwmon-lm75))
  101. define KernelPackage/hwmon-lm77
  102. TITLE:=LM77 monitoring support
  103. KCONFIG:=CONFIG_SENSORS_LM77
  104. FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.ko
  105. AUTOLOAD:=$(call AutoProbe,lm77)
  106. $(call AddDepends/hwmon,+kmod-i2c-core)
  107. endef
  108. define KernelPackage/hwmon-lm77/description
  109. Kernel module for LM77 thermal monitor chip
  110. endef
  111. $(eval $(call KernelPackage,hwmon-lm77))
  112. define KernelPackage/hwmon-lm85
  113. TITLE:=LM85 monitoring support
  114. KCONFIG:=CONFIG_SENSORS_LM85
  115. FILES:=$(LINUX_DIR)/drivers/hwmon/lm85.ko
  116. AUTOLOAD:=$(call AutoProbe,lm85)
  117. $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
  118. endef
  119. define KernelPackage/hwmon-lm85/description
  120. Kernel module for LM85 thermal monitor chip
  121. endef
  122. $(eval $(call KernelPackage,hwmon-lm85))
  123. define KernelPackage/hwmon-lm90
  124. TITLE:=LM90 monitoring support
  125. KCONFIG:=CONFIG_SENSORS_LM90
  126. FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.ko
  127. AUTOLOAD:=$(call AutoProbe,lm90)
  128. $(call AddDepends/hwmon,+kmod-i2c-core)
  129. endef
  130. define KernelPackage/hwmon-lm90/description
  131. Kernel module for LM90 thermal monitor chip
  132. endef
  133. $(eval $(call KernelPackage,hwmon-lm90))
  134. define KernelPackage/hwmon-lm92
  135. TITLE:=LM92 monitoring support
  136. KCONFIG:=CONFIG_SENSORS_LM92
  137. FILES:=$(LINUX_DIR)/drivers/hwmon/lm92.ko
  138. AUTOLOAD:=$(call AutoProbe,lm92)
  139. $(call AddDepends/hwmon,+kmod-i2c-core)
  140. endef
  141. define KernelPackage/hwmon-lm92/description
  142. Kernel module for LM92 thermal monitor chip
  143. endef
  144. $(eval $(call KernelPackage,hwmon-lm92))
  145. define KernelPackage/hwmon-lm95241
  146. TITLE:=LM95241 monitoring support
  147. KCONFIG:=CONFIG_SENSORS_LM95241
  148. FILES:=$(LINUX_DIR)/drivers/hwmon/lm95241.ko
  149. AUTOLOAD:=$(call AutoProbe,lm95241)
  150. $(call AddDepends/hwmon,+kmod-i2c-core)
  151. endef
  152. define KernelPackage/hwmon-lm95241/description
  153. Kernel module for LM95241 thermal monitor chip
  154. endef
  155. $(eval $(call KernelPackage,hwmon-lm95241))
  156. define KernelPackage/hwmon-sht21
  157. TITLE:=Sensiron SHT21 and compat. monitoring support
  158. KCONFIG:=CONFIG_SENSORS_SHT21
  159. FILES:=$(LINUX_DIR)/drivers/hwmon/sht21.ko
  160. AUTOLOAD:=$(call AutoProbe,sht21)
  161. $(call AddDepends/hwmon,+kmod-i2c-core)
  162. endef
  163. define KernelPackage/hwmon-sht21/description
  164. Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
  165. endef
  166. $(eval $(call KernelPackage,hwmon-sht21))
  167. define KernelPackage/hwmon-pc87360
  168. TITLE:=PC87360 monitoring support
  169. KCONFIG:=CONFIG_SENSORS_PC87360
  170. FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.ko
  171. AUTOLOAD:=$(call AutoProbe,pc87360)
  172. $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
  173. endef
  174. define KernelPackage/hwmon-pc87360/description
  175. Kernel modules for PC87360 chips
  176. endef
  177. $(eval $(call KernelPackage,hwmon-pc87360))
  178. define KernelPackage/hwmon-w83627hf
  179. TITLE:=Winbond W83627HF monitoring support
  180. KCONFIG:=CONFIG_SENSORS_W83627HF
  181. FILES:=$(LINUX_DIR)/drivers/hwmon/w83627hf.ko
  182. AUTOLOAD:=$(call AutoLoad,50,w83627hf)
  183. $(call AddDepends/hwmon,@TARGET_rdc||TARGET_x86 +kmod-hwmon-vid)
  184. endef
  185. define KernelPackage/hwmon-w83627hf/description
  186. Kernel module for the Winbond W83627HF chips.
  187. endef
  188. $(eval $(call KernelPackage,hwmon-w83627hf))
  189. define KernelPackage/hwmon-gsc
  190. TITLE:=Gateworks GSC monitoring support
  191. KCONFIG:=CONFIG_SENSORS_GSC
  192. FILES:=$(LINUX_DIR)/drivers/hwmon/gsc.ko
  193. AUTOLOAD:=$(call AutoLoad,60,gsc)
  194. $(call AddDepends/hwmon,+kmod-i2c-core)
  195. endef
  196. define KernelPackage/hwmon-gsc/description
  197. Kernel module for the Gateworks System Controller chips.
  198. endef
  199. $(eval $(call KernelPackage,hwmon-gsc))
  200. define KernelPackage/hwmon-tmp421
  201. TITLE:=TI TMP421 and compatible monitoring support
  202. KCONFIG:=CONFIG_SENSORS_TMP421
  203. FILES:=$(LINUX_DIR)/drivers/hwmon/tmp421.ko
  204. AUTOLOAD:=$(call AutoLoad,60,tmp421)
  205. $(call AddDepends/hwmon,+kmod-i2c-core)
  206. endef
  207. define KernelPackage/hwmon-tmp421/description
  208. Kernel module for the Texas Instruments TMP421 and compatible chips.
  209. endef
  210. $(eval $(call KernelPackage,hwmon-tmp421))
  211. define KernelPackage/hwmon-gpiofan
  212. TITLE:=Generic GPIO FAN support
  213. KCONFIG:=CONFIG_SENSORS_GPIO_FAN
  214. FILES:=$(LINUX_DIR)/drivers/hwmon/gpio-fan.ko
  215. AUTOLOAD:=$(call AutoLoad,60,gpio-fan)
  216. $(call AddDepends/hwmon,+kmod-i2c-core)
  217. endef
  218. define KernelPackage/hwmon-gpiofan/description
  219. Kernel module for GPIO controlled FANs
  220. endef
  221. $(eval $(call KernelPackage,hwmon-gpiofan))
  222. define KernelPackage/hwmon-k10temp
  223. TITLE:=AMD Family 10h+ temperature sensor
  224. KCONFIG:=CONFIG_SENSORS_K10TEMP
  225. FILES:=$(LINUX_DIR)/drivers/hwmon/k10temp.ko
  226. AUTOLOAD:=$(call AutoLoad,60,k10temp)
  227. $(call AddDepends/hwmon,@PCI_SUPPORT @(x86||x86_64))
  228. endef
  229. define KernelPackage/hwmon-k10temp/description
  230. Thermal sensor support for AMD 10h, 11h, 12h (Llano), 14h (Brazos),
  231. 15h (Bulldozer/Trinity/Kaveri) and 16h (Kabini/Mullins) CPUs
  232. endef
  233. $(eval $(call KernelPackage,hwmon-k10temp))