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