hwmon.mk 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  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-ads1015
  26. TITLE:=Texas Instruments ADS1015
  27. KCONFIG:= CONFIG_SENSORS_ADS1015
  28. FILES:= $(LINUX_DIR)/drivers/hwmon/ads1015.ko
  29. AUTOLOAD:=$(call AutoLoad,60,ads1015)
  30. $(call AddDepends/hwmon,+kmod-i2c-core)
  31. endef
  32. define KernelPackage/hwmon-ads1015/description
  33. Kernel module for Texas Instruments ADS1015 Analog-to-Digital converter
  34. endef
  35. $(eval $(call KernelPackage,hwmon-ads1015))
  36. define KernelPackage/hwmon-adt7410
  37. TITLE:=ADT7410 monitoring support
  38. KCONFIG:= \
  39. CONFIG_SENSORS_ADT7X10 \
  40. CONFIG_SENSORS_ADT7410
  41. FILES:= \
  42. $(LINUX_DIR)/drivers/hwmon/adt7x10.ko \
  43. $(LINUX_DIR)/drivers/hwmon/adt7410.ko
  44. AUTOLOAD:=$(call AutoLoad,60,adt7x10 adt7410)
  45. $(call AddDepends/hwmon,+kmod-i2c-core)
  46. endef
  47. define KernelPackage/hwmon-adt7410/description
  48. Kernel module for ADT7410/7420 I2C thermal monitor chip
  49. endef
  50. $(eval $(call KernelPackage,hwmon-adt7410))
  51. define KernelPackage/hwmon-adt7475
  52. TITLE:=ADT7473/7475/7476/7490 monitoring support
  53. KCONFIG:=CONFIG_SENSORS_ADT7475
  54. FILES:=$(LINUX_DIR)/drivers/hwmon/adt7475.ko
  55. AUTOLOAD:=$(call AutoProbe,adt7475)
  56. $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
  57. endef
  58. define KernelPackage/hwmon-adt7475/description
  59. Kernel module for ADT7473/7475/7476/7490 thermal monitor chip
  60. endef
  61. $(eval $(call KernelPackage,hwmon-adt7475))
  62. define KernelPackage/hwmon-gpiofan
  63. TITLE:=Generic GPIO FAN support
  64. KCONFIG:=CONFIG_SENSORS_GPIO_FAN
  65. FILES:=$(LINUX_DIR)/drivers/hwmon/gpio-fan.ko
  66. AUTOLOAD:=$(call AutoLoad,60,gpio-fan)
  67. $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal)
  68. endef
  69. define KernelPackage/hwmon-gpiofan/description
  70. Kernel module for GPIO controlled FANs
  71. endef
  72. $(eval $(call KernelPackage,hwmon-gpiofan))
  73. define KernelPackage/hwmon-ina209
  74. TITLE:=INA209 monitoring support
  75. KCONFIG:=CONFIG_SENSORS_INA209
  76. FILES:=$(LINUX_DIR)/drivers/hwmon/ina209.ko
  77. AUTOLOAD:=$(call AutoProbe,ina209)
  78. $(call AddDepends/hwmon,+kmod-i2c-core)
  79. endef
  80. define KernelPackage/hwmon-ina209/description
  81. Kernel module for ina209 dc power monitor chips
  82. endef
  83. $(eval $(call KernelPackage,hwmon-ina209))
  84. define KernelPackage/hwmon-ina2xx
  85. TITLE:=INA2XX monitoring support
  86. KCONFIG:=CONFIG_SENSORS_INA2XX
  87. FILES:=$(LINUX_DIR)/drivers/hwmon/ina2xx.ko
  88. AUTOLOAD:=$(call AutoProbe,ina2xx)
  89. $(call AddDepends/hwmon,+kmod-i2c-core +kmod-regmap-i2c)
  90. endef
  91. define KernelPackage/hwmon-ina2xx/description
  92. Kernel module for ina2xx dc current monitor chips
  93. endef
  94. $(eval $(call KernelPackage,hwmon-ina2xx))
  95. define KernelPackage/hwmon-it87
  96. TITLE:=IT87 monitoring support
  97. KCONFIG:=CONFIG_SENSORS_IT87
  98. FILES:=$(LINUX_DIR)/drivers/hwmon/it87.ko
  99. AUTOLOAD:=$(call AutoProbe,it87)
  100. $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid +PACKAGE_kmod-thermal:kmod-thermal)
  101. endef
  102. define KernelPackage/hwmon-it87/description
  103. Kernel module for it87 thermal and voltage monitor chip
  104. endef
  105. $(eval $(call KernelPackage,hwmon-it87))
  106. define KernelPackage/hwmon-lm63
  107. TITLE:=LM63/64 monitoring support
  108. KCONFIG:=CONFIG_SENSORS_LM63
  109. FILES:=$(LINUX_DIR)/drivers/hwmon/lm63.ko
  110. AUTOLOAD:=$(call AutoProbe,lm63)
  111. $(call AddDepends/hwmon,+kmod-i2c-core +kmod-regmap-i2c)
  112. endef
  113. define KernelPackage/hwmon-lm63/description
  114. Kernel module for lm63 and lm64 thermal monitor chip
  115. endef
  116. $(eval $(call KernelPackage,hwmon-lm63))
  117. define KernelPackage/hwmon-lm75
  118. TITLE:=LM75 monitoring support
  119. KCONFIG:=CONFIG_SENSORS_LM75
  120. FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.ko
  121. AUTOLOAD:=$(call AutoProbe,lm75)
  122. $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal +kmod-regmap-i2c)
  123. endef
  124. define KernelPackage/hwmon-lm75/description
  125. Kernel module for lm75 thermal monitor chip
  126. endef
  127. $(eval $(call KernelPackage,hwmon-lm75))
  128. define KernelPackage/hwmon-lm77
  129. TITLE:=LM77 monitoring support
  130. KCONFIG:=CONFIG_SENSORS_LM77
  131. FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.ko
  132. AUTOLOAD:=$(call AutoProbe,lm77)
  133. $(call AddDepends/hwmon,+kmod-i2c-core)
  134. endef
  135. define KernelPackage/hwmon-lm77/description
  136. Kernel module for LM77 thermal monitor chip
  137. endef
  138. $(eval $(call KernelPackage,hwmon-lm77))
  139. define KernelPackage/hwmon-lm85
  140. TITLE:=LM85 monitoring support
  141. KCONFIG:=CONFIG_SENSORS_LM85
  142. FILES:=$(LINUX_DIR)/drivers/hwmon/lm85.ko
  143. AUTOLOAD:=$(call AutoProbe,lm85)
  144. $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
  145. endef
  146. define KernelPackage/hwmon-lm85/description
  147. Kernel module for LM85 thermal monitor chip
  148. endef
  149. $(eval $(call KernelPackage,hwmon-lm85))
  150. define KernelPackage/hwmon-lm90
  151. TITLE:=LM90 monitoring support
  152. KCONFIG:=CONFIG_SENSORS_LM90
  153. FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.ko
  154. AUTOLOAD:=$(call AutoProbe,lm90)
  155. $(call AddDepends/hwmon,+kmod-i2c-core)
  156. endef
  157. define KernelPackage/hwmon-lm90/description
  158. Kernel module for LM90 thermal monitor chip
  159. endef
  160. $(eval $(call KernelPackage,hwmon-lm90))
  161. define KernelPackage/hwmon-lm92
  162. TITLE:=LM92 monitoring support
  163. KCONFIG:=CONFIG_SENSORS_LM92
  164. FILES:=$(LINUX_DIR)/drivers/hwmon/lm92.ko
  165. AUTOLOAD:=$(call AutoProbe,lm92)
  166. $(call AddDepends/hwmon,+kmod-i2c-core)
  167. endef
  168. define KernelPackage/hwmon-lm92/description
  169. Kernel module for LM92 thermal monitor chip
  170. endef
  171. $(eval $(call KernelPackage,hwmon-lm92))
  172. define KernelPackage/hwmon-lm95241
  173. TITLE:=LM95241 monitoring support
  174. KCONFIG:=CONFIG_SENSORS_LM95241
  175. FILES:=$(LINUX_DIR)/drivers/hwmon/lm95241.ko
  176. AUTOLOAD:=$(call AutoProbe,lm95241)
  177. $(call AddDepends/hwmon,+kmod-i2c-core)
  178. endef
  179. define KernelPackage/hwmon-lm95241/description
  180. Kernel module for LM95241 thermal monitor chip
  181. endef
  182. $(eval $(call KernelPackage,hwmon-lm95241))
  183. define KernelPackage/hwmon-ltc4151
  184. TITLE:=LTC4151 monitoring support
  185. KCONFIG:=CONFIG_SENSORS_LTC4151
  186. FILES:=$(LINUX_DIR)/drivers/hwmon/ltc4151.ko
  187. AUTOLOAD:=$(call AutoProbe,ltc4151)
  188. $(call AddDepends/hwmon,+kmod-i2c-core)
  189. endef
  190. define KernelPackage/hwmon-ltc4151/description
  191. Kernel module for Linear Technology LTC4151 current and voltage monitor chip
  192. endef
  193. $(eval $(call KernelPackage,hwmon-ltc4151))
  194. define KernelPackage/hwmon-nct6775
  195. TITLE:=NCT6106D/6775F/6776F/6779D/6791D/6792D/6793D and compatibles monitoring support
  196. KCONFIG:=CONFIG_SENSORS_NCT6775
  197. FILES:=$(LINUX_DIR)/drivers/hwmon/nct6775.ko
  198. AUTOLOAD:=$(call AutoProbe,nct6775)
  199. $(call AddDepends/hwmon,@PCI_SUPPORT @TARGET_x86 +kmod-hwmon-vid)
  200. endef
  201. define KernelPackage/hwmon-nct6775/description
  202. Kernel module for NCT6106D/6775F/6776F/6779D/6791D/6792D/6793D thermal monitor chip
  203. endef
  204. $(eval $(call KernelPackage,hwmon-nct6775))
  205. define KernelPackage/hwmon-pc87360
  206. TITLE:=PC87360 monitoring support
  207. KCONFIG:=CONFIG_SENSORS_PC87360
  208. FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.ko
  209. AUTOLOAD:=$(call AutoProbe,pc87360)
  210. $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
  211. endef
  212. define KernelPackage/hwmon-pc87360/description
  213. Kernel modules for PC87360 chips
  214. endef
  215. $(eval $(call KernelPackage,hwmon-pc87360))
  216. define KernelPackage/pmbus-core
  217. TITLE:=PMBus support
  218. KCONFIG:= CONFIG_PMBUS
  219. FILES:=$(LINUX_DIR)/drivers/hwmon/pmbus/pmbus_core.ko
  220. $(call AddDepends/hwmon,+kmod-i2c-core)
  221. endef
  222. define KernelPackage/pmbus-core/description
  223. Kernel modules for Power Management Bus
  224. endef
  225. $(eval $(call KernelPackage,pmbus-core))
  226. define KernelPackage/pmbus-zl6100
  227. TITLE:=Intersil / Zilker Labs ZL6100 hardware monitoring
  228. KCONFIG:=CONFIG_SENSORS_ZL6100
  229. FILES:=$(LINUX_DIR)/drivers/hwmon/pmbus/zl6100.ko
  230. AUTOLOAD:=$(call AutoProbe,zl6100)
  231. $(call AddDepends/hwmon, +kmod-pmbus-core)
  232. endef
  233. define KernelPackage/hwmon-sht21/description
  234. Kernel module for Intersil / Zilker Labs ZL6100 and
  235. compatible digital DC-DC controllers
  236. endef
  237. $(eval $(call KernelPackage,pmbus-zl6100))
  238. define KernelPackage/hwmon-pwmfan
  239. TITLE:=Generic PWM FAN support
  240. KCONFIG:=CONFIG_SENSORS_PWM_FAN
  241. FILES:=$(LINUX_DIR)/drivers/hwmon/pwm-fan.ko
  242. AUTOLOAD:=$(call AutoLoad,60,pwm-fan)
  243. $(call AddDepends/hwmon, +PACKAGE_kmod-thermal:kmod-thermal)
  244. endef
  245. define KernelPackage/hwmon-pwmfan/description
  246. Kernel module for PWM controlled FANs
  247. endef
  248. $(eval $(call KernelPackage,hwmon-pwmfan))
  249. define KernelPackage/hwmon-sch5627
  250. TITLE:=SMSC SCH5627 monitoring support
  251. KCONFIG:=CONFIG_SENSORS_SCH5627
  252. FILES:= \
  253. $(LINUX_DIR)/drivers/hwmon/sch5627.ko \
  254. $(LINUX_DIR)/drivers/hwmon/sch56xx-common.ko
  255. AUTOLOAD:=$(call AutoProbe,sch5627)
  256. $(call AddDepends/hwmon,+kmod-i2c-core)
  257. endef
  258. define KernelPackage/hwmon-sch5627/description
  259. SMSC SCH5627 Super I/O chips include complete hardware monitoring
  260. endef
  261. $(eval $(call KernelPackage,hwmon-sch5627))
  262. define KernelPackage/hwmon-sht21
  263. TITLE:=Sensiron SHT21 and compat. monitoring support
  264. KCONFIG:=CONFIG_SENSORS_SHT21
  265. FILES:=$(LINUX_DIR)/drivers/hwmon/sht21.ko
  266. AUTOLOAD:=$(call AutoProbe,sht21)
  267. $(call AddDepends/hwmon,+kmod-i2c-core)
  268. endef
  269. define KernelPackage/hwmon-sht21/description
  270. Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
  271. endef
  272. $(eval $(call KernelPackage,hwmon-sht21))
  273. define KernelPackage/hwmon-tmp102
  274. TITLE:=Texas Instruments TMP102 monitoring support
  275. KCONFIG:=CONFIG_SENSORS_TMP102
  276. FILES:=$(LINUX_DIR)/drivers/hwmon/tmp102.ko
  277. AUTOLOAD:=$(call AutoProbe,tmp102)
  278. $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal +kmod-regmap-i2c)
  279. endef
  280. define KernelPackage/hwmon-tmp102/description
  281. Kernel module for Texas Instruments TMP102 temperature sensors chip
  282. endef
  283. $(eval $(call KernelPackage,hwmon-tmp102))
  284. define KernelPackage/hwmon-tmp103
  285. TITLE:=Texas Instruments TMP103 monitoring support
  286. KCONFIG:=CONFIG_SENSORS_TMP103
  287. FILES:=$(LINUX_DIR)/drivers/hwmon/tmp103.ko
  288. AUTOLOAD:=$(call AutoProbe,tmp103)
  289. $(call AddDepends/hwmon,+kmod-i2c-core +kmod-regmap-i2c)
  290. endef
  291. define KernelPackage/hwmon-tmp103/description
  292. Kernel module for Texas Instruments TMP103 temperature sensors chip
  293. endef
  294. $(eval $(call KernelPackage,hwmon-tmp103))
  295. define KernelPackage/hwmon-tmp421
  296. TITLE:=TI TMP421 and compatible monitoring support
  297. KCONFIG:=CONFIG_SENSORS_TMP421
  298. FILES:=$(LINUX_DIR)/drivers/hwmon/tmp421.ko
  299. AUTOLOAD:=$(call AutoLoad,60,tmp421)
  300. $(call AddDepends/hwmon,+kmod-i2c-core)
  301. endef
  302. define KernelPackage/hwmon-tmp421/description
  303. Kernel module for the Texas Instruments TMP421 and compatible chips.
  304. endef
  305. $(eval $(call KernelPackage,hwmon-tmp421))
  306. define KernelPackage/hwmon-vid
  307. TITLE:=VID/VRM/VRD voltage conversion module.
  308. KCONFIG:=CONFIG_HWMON_VID
  309. FILES:=$(LINUX_DIR)/drivers/hwmon/hwmon-vid.ko
  310. AUTOLOAD:=$(call AutoLoad,41,hwmon-vid)
  311. $(call AddDepends/hwmon,)
  312. endef
  313. define KernelPackage/hwmon-vid/description
  314. VID/VRM/VRD voltage conversion module for hardware monitoring
  315. endef
  316. $(eval $(call KernelPackage,hwmon-vid))
  317. define KernelPackage/hwmon-w83627ehf
  318. TITLE:=Winbond W83627EHF/EHG/DHG/UHG, W83667HG monitoring support
  319. KCONFIG:=CONFIG_SENSORS_W83627EHF
  320. FILES:=$(LINUX_DIR)/drivers/hwmon/w83627ehf.ko
  321. AUTOLOAD:=$(call AutoProbe,w83627ehf)
  322. $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
  323. endef
  324. define KernelPackage/hwmon-w83627ehf/description
  325. Kernel module for Winbond W83627EHF/EHG/DHG/UHG and W83667HG thermal monitor chip
  326. Support for NCT6775F and NCT6776F has been removed from this driver in favour of
  327. using the nct6775 driver to handle those chips.
  328. endef
  329. $(eval $(call KernelPackage,hwmon-w83627ehf))
  330. define KernelPackage/hwmon-w83627hf
  331. TITLE:=Winbond W83627HF monitoring support
  332. KCONFIG:=CONFIG_SENSORS_W83627HF
  333. FILES:=$(LINUX_DIR)/drivers/hwmon/w83627hf.ko
  334. AUTOLOAD:=$(call AutoLoad,50,w83627hf)
  335. $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
  336. endef
  337. define KernelPackage/hwmon-w83627hf/description
  338. Kernel module for the Winbond W83627HF chips.
  339. endef
  340. $(eval $(call KernelPackage,hwmon-w83627hf))
  341. define KernelPackage/hwmon-w83793
  342. TITLE:=Winbond W83793G/R monitoring support
  343. KCONFIG:=CONFIG_SENSORS_W83793
  344. FILES:=$(LINUX_DIR)/drivers/hwmon/w83793.ko
  345. AUTOLOAD:=$(call AutoProbe,w83793)
  346. $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
  347. endef
  348. define KernelPackage/hwmon-w83793/description
  349. Kernel module for the Winbond W83793G and W83793R chips.
  350. endef
  351. $(eval $(call KernelPackage,hwmon-w83793))
  352. define KernelPackage/hwmon-adcxx
  353. TITLE:=ADCxx monitoring support
  354. KCONFIG:=CONFIG_SENSORS_ADCXX
  355. FILES:=$(LINUX_DIR)/drivers/hwmon/adcxx.ko
  356. AUTOLOAD:=$(call AutoLoad,60,adcxx)
  357. $(call AddDepends/hwmon,)
  358. endef
  359. define KernelPackage/hwmon-adcxx/description
  360. Kernel module for the National Semiconductor
  361. ADC<bb><c>S<sss> chip family, where
  362. * bb is the resolution in number of bits (8, 10, 12)
  363. * c is the number of channels (1, 2, 4, 8)
  364. * sss is the maximum conversion speed (021 for 200 kSPS, 051 for 500
  365. kSPS and 101 for 1 MSPS)
  366. Examples : ADC081S101, ADC124S501, ...
  367. endef
  368. $(eval $(call KernelPackage,hwmon-adcxx))