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