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