kernel: backport and package drivetemp hwmon from v5.5
[openwrt/staging/wigyori.git] / package / kernel / linux / modules / hwmon.mk
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
8 HWMON_MENU:=Hardware Monitoring Support
9
10 define KernelPackage/hwmon-core
11 SUBMENU:=$(HWMON_MENU)
12 TITLE:=Hardware monitoring support
13 KCONFIG:= \
14 CONFIG_HWMON \
15 CONFIG_HWMON_DEBUG_CHIP=n
16 FILES:= \
17 $(LINUX_DIR)/drivers/hwmon/hwmon.ko
18 endef
19
20 define KernelPackage/hwmon-core/description
21 Kernel modules for hardware monitoring
22 endef
23
24 $(eval $(call KernelPackage,hwmon-core))
25
26
27 define AddDepends/hwmon
28 SUBMENU:=$(HWMON_MENU)
29 DEPENDS:=+kmod-hwmon-core $(1)
30 endef
31
32 define KernelPackage/hwmon-ads1015
33 TITLE:=Texas Instruments ADS1015
34 KCONFIG:= CONFIG_SENSORS_ADS1015
35 FILES:= $(LINUX_DIR)/drivers/hwmon/ads1015.ko
36 AUTOLOAD:=$(call AutoLoad,60,ads1015)
37 $(call AddDepends/hwmon,+kmod-i2c-core)
38 endef
39
40 define KernelPackage/hwmon-ads1015/description
41 Kernel module for Texas Instruments ADS1015 Analog-to-Digital converter
42 endef
43
44 $(eval $(call KernelPackage,hwmon-ads1015))
45
46 define KernelPackage/hwmon-adt7410
47 TITLE:=ADT7410 monitoring support
48 KCONFIG:= \
49 CONFIG_SENSORS_ADT7X10 \
50 CONFIG_SENSORS_ADT7410
51 FILES:= \
52 $(LINUX_DIR)/drivers/hwmon/adt7x10.ko \
53 $(LINUX_DIR)/drivers/hwmon/adt7410.ko
54 AUTOLOAD:=$(call AutoLoad,60,adt7x10 adt7410)
55 $(call AddDepends/hwmon,+kmod-i2c-core)
56 endef
57
58 define KernelPackage/hwmon-adt7410/description
59 Kernel module for ADT7410/7420 I2C thermal monitor chip
60 endef
61
62 $(eval $(call KernelPackage,hwmon-adt7410))
63
64
65 define KernelPackage/hwmon-adt7475
66 TITLE:=ADT7473/7475/7476/7490 monitoring support
67 KCONFIG:=CONFIG_SENSORS_ADT7475
68 FILES:=$(LINUX_DIR)/drivers/hwmon/adt7475.ko
69 AUTOLOAD:=$(call AutoProbe,adt7475)
70 $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
71 endef
72
73 define KernelPackage/hwmon-adt7475/description
74 Kernel module for ADT7473/7475/7476/7490 thermal monitor chip
75 endef
76
77 $(eval $(call KernelPackage,hwmon-adt7475))
78
79
80 define KernelPackage/hwmon-drivetemp
81 TITLE:=Hard disk drives with temperature sensor
82 KCONFIG:=CONFIG_SENSORS_DRIVETEMP
83 FILES:=$(LINUX_DIR)/drivers/hwmon/drivetemp.ko
84 AUTOLOAD:=$(call AutoLoad,60,drivetemp)
85 $(call AddDepends/hwmon,+kmod-ata-core +kmod-scsi-core)
86 endef
87
88 define KernelPackage/hwmon-drivetemp/description
89 Kernel module for Hard disk drives with temperature sensor
90 endef
91
92 $(eval $(call KernelPackage,hwmon-drivetemp))
93
94
95 define KernelPackage/hwmon-gpiofan
96 TITLE:=Generic GPIO FAN support
97 KCONFIG:=CONFIG_SENSORS_GPIO_FAN
98 FILES:=$(LINUX_DIR)/drivers/hwmon/gpio-fan.ko
99 AUTOLOAD:=$(call AutoLoad,60,gpio-fan)
100 $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal)
101 endef
102
103 define KernelPackage/hwmon-gpiofan/description
104 Kernel module for GPIO controlled FANs
105 endef
106
107 $(eval $(call KernelPackage,hwmon-gpiofan))
108
109
110 define KernelPackage/hwmon-ina209
111 TITLE:=INA209 monitoring support
112 KCONFIG:=CONFIG_SENSORS_INA209
113 FILES:=$(LINUX_DIR)/drivers/hwmon/ina209.ko
114 AUTOLOAD:=$(call AutoProbe,ina209)
115 $(call AddDepends/hwmon,+kmod-i2c-core)
116 endef
117
118 define KernelPackage/hwmon-ina209/description
119 Kernel module for ina209 dc power monitor chips
120 endef
121
122 $(eval $(call KernelPackage,hwmon-ina209))
123
124
125 define KernelPackage/hwmon-ina2xx
126 TITLE:=INA2XX monitoring support
127 KCONFIG:=CONFIG_SENSORS_INA2XX
128 FILES:=$(LINUX_DIR)/drivers/hwmon/ina2xx.ko
129 AUTOLOAD:=$(call AutoProbe,ina2xx)
130 $(call AddDepends/hwmon,+kmod-i2c-core +kmod-regmap-i2c)
131 endef
132
133 define KernelPackage/hwmon-ina2xx/description
134 Kernel module for ina2xx dc current monitor chips
135 endef
136
137 $(eval $(call KernelPackage,hwmon-ina2xx))
138
139
140 define KernelPackage/hwmon-it87
141 TITLE:=IT87 monitoring support
142 KCONFIG:=CONFIG_SENSORS_IT87
143 FILES:=$(LINUX_DIR)/drivers/hwmon/it87.ko
144 AUTOLOAD:=$(call AutoProbe,it87)
145 $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid +PACKAGE_kmod-thermal:kmod-thermal)
146 endef
147
148 define KernelPackage/hwmon-it87/description
149 Kernel module for it87 thermal and voltage monitor chip
150 endef
151
152 $(eval $(call KernelPackage,hwmon-it87))
153
154
155 define KernelPackage/hwmon-lm63
156 TITLE:=LM63/64 monitoring support
157 KCONFIG:=CONFIG_SENSORS_LM63
158 FILES:=$(LINUX_DIR)/drivers/hwmon/lm63.ko
159 AUTOLOAD:=$(call AutoProbe,lm63)
160 $(call AddDepends/hwmon,+kmod-i2c-core +kmod-regmap-i2c)
161 endef
162
163 define KernelPackage/hwmon-lm63/description
164 Kernel module for lm63 and lm64 thermal monitor chip
165 endef
166
167 $(eval $(call KernelPackage,hwmon-lm63))
168
169
170 define KernelPackage/hwmon-lm75
171 TITLE:=LM75 monitoring support
172 KCONFIG:=CONFIG_SENSORS_LM75
173 FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.ko
174 AUTOLOAD:=$(call AutoProbe,lm75)
175 $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal +kmod-regmap-i2c)
176 endef
177
178 define KernelPackage/hwmon-lm75/description
179 Kernel module for lm75 thermal monitor chip
180 endef
181
182 $(eval $(call KernelPackage,hwmon-lm75))
183
184
185 define KernelPackage/hwmon-lm77
186 TITLE:=LM77 monitoring support
187 KCONFIG:=CONFIG_SENSORS_LM77
188 FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.ko
189 AUTOLOAD:=$(call AutoProbe,lm77)
190 $(call AddDepends/hwmon,+kmod-i2c-core)
191 endef
192
193 define KernelPackage/hwmon-lm77/description
194 Kernel module for LM77 thermal monitor chip
195 endef
196
197 $(eval $(call KernelPackage,hwmon-lm77))
198
199
200 define KernelPackage/hwmon-lm85
201 TITLE:=LM85 monitoring support
202 KCONFIG:=CONFIG_SENSORS_LM85
203 FILES:=$(LINUX_DIR)/drivers/hwmon/lm85.ko
204 AUTOLOAD:=$(call AutoProbe,lm85)
205 $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
206 endef
207
208 define KernelPackage/hwmon-lm85/description
209 Kernel module for LM85 thermal monitor chip
210 endef
211
212 $(eval $(call KernelPackage,hwmon-lm85))
213
214
215 define KernelPackage/hwmon-lm90
216 TITLE:=LM90 monitoring support
217 KCONFIG:=CONFIG_SENSORS_LM90
218 FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.ko
219 AUTOLOAD:=$(call AutoProbe,lm90)
220 $(call AddDepends/hwmon,+kmod-i2c-core)
221 endef
222
223 define KernelPackage/hwmon-lm90/description
224 Kernel module for LM90 thermal monitor chip
225 endef
226
227 $(eval $(call KernelPackage,hwmon-lm90))
228
229
230 define KernelPackage/hwmon-lm92
231 TITLE:=LM92 monitoring support
232 KCONFIG:=CONFIG_SENSORS_LM92
233 FILES:=$(LINUX_DIR)/drivers/hwmon/lm92.ko
234 AUTOLOAD:=$(call AutoProbe,lm92)
235 $(call AddDepends/hwmon,+kmod-i2c-core)
236 endef
237
238 define KernelPackage/hwmon-lm92/description
239 Kernel module for LM92 thermal monitor chip
240 endef
241
242 $(eval $(call KernelPackage,hwmon-lm92))
243
244
245 define KernelPackage/hwmon-lm95241
246 TITLE:=LM95241 monitoring support
247 KCONFIG:=CONFIG_SENSORS_LM95241
248 FILES:=$(LINUX_DIR)/drivers/hwmon/lm95241.ko
249 AUTOLOAD:=$(call AutoProbe,lm95241)
250 $(call AddDepends/hwmon,+kmod-i2c-core)
251 endef
252
253 define KernelPackage/hwmon-lm95241/description
254 Kernel module for LM95241 thermal monitor chip
255 endef
256
257 $(eval $(call KernelPackage,hwmon-lm95241))
258
259
260 define KernelPackage/hwmon-ltc4151
261 TITLE:=LTC4151 monitoring support
262 KCONFIG:=CONFIG_SENSORS_LTC4151
263 FILES:=$(LINUX_DIR)/drivers/hwmon/ltc4151.ko
264 AUTOLOAD:=$(call AutoProbe,ltc4151)
265 $(call AddDepends/hwmon,+kmod-i2c-core)
266 endef
267
268 define KernelPackage/hwmon-ltc4151/description
269 Kernel module for Linear Technology LTC4151 current and voltage monitor chip
270 endef
271
272 $(eval $(call KernelPackage,hwmon-ltc4151))
273
274
275 define KernelPackage/hwmon-mcp3021
276 TITLE:=MCP3021/3221 monitoring support
277 KCONFIG:=CONFIG_SENSORS_MCP3021
278 FILES:=$(LINUX_DIR)/drivers/hwmon/mcp3021.ko
279 AUTOLOAD:=$(call AutoProbe,mcp3021)
280 $(call AddDepends/hwmon,+kmod-i2c-core)
281 endef
282
283 define KernelPackage/hwmon-mcp3021/description
284 Kernel module for Linear Technology MCP3021/3221 current and voltage monitor chip
285 endef
286
287 $(eval $(call KernelPackage,hwmon-mcp3021))
288
289
290 define KernelPackage/hwmon-nct6775
291 TITLE:=NCT6106D/6775F/6776F/6779D/6791D/6792D/6793D and compatibles monitoring support
292 KCONFIG:=CONFIG_SENSORS_NCT6775
293 FILES:=$(LINUX_DIR)/drivers/hwmon/nct6775.ko
294 AUTOLOAD:=$(call AutoProbe,nct6775)
295 $(call AddDepends/hwmon,@PCI_SUPPORT @TARGET_x86 +kmod-hwmon-vid)
296 endef
297
298 define KernelPackage/hwmon-nct6775/description
299 Kernel module for NCT6106D/6775F/6776F/6779D/6791D/6792D/6793D thermal monitor chip
300 endef
301
302 $(eval $(call KernelPackage,hwmon-nct6775))
303
304
305 define KernelPackage/hwmon-pc87360
306 TITLE:=PC87360 monitoring support
307 KCONFIG:=CONFIG_SENSORS_PC87360
308 FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.ko
309 AUTOLOAD:=$(call AutoProbe,pc87360)
310 $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
311 endef
312
313 define KernelPackage/hwmon-pc87360/description
314 Kernel modules for PC87360 chips
315 endef
316
317 $(eval $(call KernelPackage,hwmon-pc87360))
318
319
320 define KernelPackage/pmbus-core
321 TITLE:=PMBus support
322 KCONFIG:= CONFIG_PMBUS
323 FILES:=$(LINUX_DIR)/drivers/hwmon/pmbus/pmbus_core.ko
324 $(call AddDepends/hwmon,+kmod-i2c-core)
325 endef
326
327 define KernelPackage/pmbus-core/description
328 Kernel modules for Power Management Bus
329 endef
330
331 $(eval $(call KernelPackage,pmbus-core))
332
333
334 define KernelPackage/pmbus-zl6100
335 TITLE:=Intersil / Zilker Labs ZL6100 hardware monitoring
336 KCONFIG:=CONFIG_SENSORS_ZL6100
337 FILES:=$(LINUX_DIR)/drivers/hwmon/pmbus/zl6100.ko
338 AUTOLOAD:=$(call AutoProbe,zl6100)
339 $(call AddDepends/hwmon, +kmod-pmbus-core)
340 endef
341
342 define KernelPackage/pmbus-zl6100/description
343 Kernel module for Intersil / Zilker Labs ZL6100 and
344 compatible digital DC-DC controllers
345 endef
346
347 $(eval $(call KernelPackage,pmbus-zl6100))
348
349
350 define KernelPackage/hwmon-pwmfan
351 TITLE:=Generic PWM FAN support
352 KCONFIG:=CONFIG_SENSORS_PWM_FAN
353 FILES:=$(LINUX_DIR)/drivers/hwmon/pwm-fan.ko
354 AUTOLOAD:=$(call AutoLoad,60,pwm-fan)
355 $(call AddDepends/hwmon, +PACKAGE_kmod-thermal:kmod-thermal)
356 endef
357
358 define KernelPackage/hwmon-pwmfan/description
359 Kernel module for PWM controlled FANs
360 endef
361
362 $(eval $(call KernelPackage,hwmon-pwmfan))
363
364
365 define KernelPackage/hwmon-sch5627
366 TITLE:=SMSC SCH5627 monitoring support
367 KCONFIG:=CONFIG_SENSORS_SCH5627
368 FILES:= \
369 $(LINUX_DIR)/drivers/hwmon/sch5627.ko \
370 $(LINUX_DIR)/drivers/hwmon/sch56xx-common.ko
371 AUTOLOAD:=$(call AutoProbe,sch5627)
372 $(call AddDepends/hwmon,+kmod-i2c-core)
373 endef
374
375 define KernelPackage/hwmon-sch5627/description
376 SMSC SCH5627 Super I/O chips include complete hardware monitoring
377 endef
378
379 $(eval $(call KernelPackage,hwmon-sch5627))
380
381
382 define KernelPackage/hwmon-sht21
383 TITLE:=Sensiron SHT21 and compat. monitoring support
384 KCONFIG:=CONFIG_SENSORS_SHT21
385 FILES:=$(LINUX_DIR)/drivers/hwmon/sht21.ko
386 AUTOLOAD:=$(call AutoProbe,sht21)
387 $(call AddDepends/hwmon,+kmod-i2c-core)
388 endef
389
390 define KernelPackage/hwmon-sht21/description
391 Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
392 endef
393
394 $(eval $(call KernelPackage,hwmon-sht21))
395
396
397 define KernelPackage/hwmon-tmp102
398 TITLE:=Texas Instruments TMP102 monitoring support
399 KCONFIG:=CONFIG_SENSORS_TMP102
400 FILES:=$(LINUX_DIR)/drivers/hwmon/tmp102.ko
401 AUTOLOAD:=$(call AutoProbe,tmp102)
402 $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal +kmod-regmap-i2c)
403 endef
404
405 define KernelPackage/hwmon-tmp102/description
406 Kernel module for Texas Instruments TMP102 temperature sensors chip
407 endef
408
409 $(eval $(call KernelPackage,hwmon-tmp102))
410
411
412 define KernelPackage/hwmon-tmp103
413 TITLE:=Texas Instruments TMP103 monitoring support
414 KCONFIG:=CONFIG_SENSORS_TMP103
415 FILES:=$(LINUX_DIR)/drivers/hwmon/tmp103.ko
416 AUTOLOAD:=$(call AutoProbe,tmp103)
417 $(call AddDepends/hwmon,+kmod-i2c-core +kmod-regmap-i2c)
418 endef
419
420 define KernelPackage/hwmon-tmp103/description
421 Kernel module for Texas Instruments TMP103 temperature sensors chip
422 endef
423
424 $(eval $(call KernelPackage,hwmon-tmp103))
425
426
427 define KernelPackage/hwmon-tmp421
428 TITLE:=TI TMP421 and compatible monitoring support
429 KCONFIG:=CONFIG_SENSORS_TMP421
430 FILES:=$(LINUX_DIR)/drivers/hwmon/tmp421.ko
431 AUTOLOAD:=$(call AutoLoad,60,tmp421)
432 $(call AddDepends/hwmon,+kmod-i2c-core)
433 endef
434
435 define KernelPackage/hwmon-tmp421/description
436 Kernel module for the Texas Instruments TMP421 and compatible chips.
437 endef
438
439 $(eval $(call KernelPackage,hwmon-tmp421))
440
441
442 define KernelPackage/hwmon-vid
443 TITLE:=VID/VRM/VRD voltage conversion module.
444 KCONFIG:=CONFIG_HWMON_VID
445 FILES:=$(LINUX_DIR)/drivers/hwmon/hwmon-vid.ko
446 AUTOLOAD:=$(call AutoLoad,41,hwmon-vid)
447 $(call AddDepends/hwmon,)
448 endef
449
450 define KernelPackage/hwmon-vid/description
451 VID/VRM/VRD voltage conversion module for hardware monitoring
452 endef
453
454 $(eval $(call KernelPackage,hwmon-vid))
455
456
457 define KernelPackage/hwmon-w83627ehf
458 TITLE:=Winbond W83627EHF/EHG/DHG/UHG, W83667HG monitoring support
459 KCONFIG:=CONFIG_SENSORS_W83627EHF
460 FILES:=$(LINUX_DIR)/drivers/hwmon/w83627ehf.ko
461 AUTOLOAD:=$(call AutoProbe,w83627ehf)
462 $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
463 endef
464
465 define KernelPackage/hwmon-w83627ehf/description
466 Kernel module for Winbond W83627EHF/EHG/DHG/UHG and W83667HG thermal monitor chip
467 Support for NCT6775F and NCT6776F has been removed from this driver in favour of
468 using the nct6775 driver to handle those chips.
469 endef
470
471 $(eval $(call KernelPackage,hwmon-w83627ehf))
472
473
474 define KernelPackage/hwmon-w83627hf
475 TITLE:=Winbond W83627HF monitoring support
476 KCONFIG:=CONFIG_SENSORS_W83627HF
477 FILES:=$(LINUX_DIR)/drivers/hwmon/w83627hf.ko
478 AUTOLOAD:=$(call AutoLoad,50,w83627hf)
479 $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
480 endef
481
482 define KernelPackage/hwmon-w83627hf/description
483 Kernel module for the Winbond W83627HF chips.
484 endef
485
486 $(eval $(call KernelPackage,hwmon-w83627hf))
487
488
489 define KernelPackage/hwmon-w83793
490 TITLE:=Winbond W83793G/R monitoring support
491 KCONFIG:=CONFIG_SENSORS_W83793
492 FILES:=$(LINUX_DIR)/drivers/hwmon/w83793.ko
493 AUTOLOAD:=$(call AutoProbe,w83793)
494 $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
495 endef
496
497 define KernelPackage/hwmon-w83793/description
498 Kernel module for the Winbond W83793G and W83793R chips.
499 endef
500
501 $(eval $(call KernelPackage,hwmon-w83793))
502
503
504 define KernelPackage/hwmon-adcxx
505 TITLE:=ADCxx monitoring support
506 KCONFIG:=CONFIG_SENSORS_ADCXX
507 FILES:=$(LINUX_DIR)/drivers/hwmon/adcxx.ko
508 AUTOLOAD:=$(call AutoLoad,60,adcxx)
509 $(call AddDepends/hwmon,)
510 endef
511
512 define KernelPackage/hwmon-adcxx/description
513 Kernel module for the National Semiconductor
514 ADC<bb><c>S<sss> chip family, where
515 * bb is the resolution in number of bits (8, 10, 12)
516 * c is the number of channels (1, 2, 4, 8)
517 * sss is the maximum conversion speed (021 for 200 kSPS, 051 for 500
518 kSPS and 101 for 1 MSPS)
519
520 Examples : ADC081S101, ADC124S501, ...
521 endef
522
523 $(eval $(call KernelPackage,hwmon-adcxx))
524
525