kernel: Build it87 hardware monitor module
[librecmc/librecmc.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-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_4_4: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 define KernelPackage/hwmon-lm63
126   TITLE:=LM63/64 monitoring support
127   KCONFIG:=CONFIG_SENSORS_LM63
128   FILES:=$(LINUX_DIR)/drivers/hwmon/lm63.ko
129   AUTOLOAD:=$(call AutoProbe,lm63)
130   $(call AddDepends/hwmon,+kmod-i2c-core)
131 endef
132
133 define KernelPackage/hwmon-lm63/description
134  Kernel module for lm63 and lm64 thermal monitor chip
135 endef
136
137 $(eval $(call KernelPackage,hwmon-lm63))
138
139
140 define KernelPackage/hwmon-lm75
141   TITLE:=LM75 monitoring support
142   KCONFIG:=CONFIG_SENSORS_LM75
143   FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.ko
144   AUTOLOAD:=$(call AutoProbe,lm75)
145   $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal)
146 endef
147
148 define KernelPackage/hwmon-lm75/description
149  Kernel module for lm75 thermal monitor chip
150 endef
151
152 $(eval $(call KernelPackage,hwmon-lm75))
153
154
155 define KernelPackage/hwmon-lm77
156   TITLE:=LM77 monitoring support
157   KCONFIG:=CONFIG_SENSORS_LM77
158   FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.ko
159   AUTOLOAD:=$(call AutoProbe,lm77)
160   $(call AddDepends/hwmon,+kmod-i2c-core)
161 endef
162
163 define KernelPackage/hwmon-lm77/description
164  Kernel module for LM77 thermal monitor chip
165 endef
166
167 $(eval $(call KernelPackage,hwmon-lm77))
168
169
170 define KernelPackage/hwmon-lm85
171   TITLE:=LM85 monitoring support
172   KCONFIG:=CONFIG_SENSORS_LM85
173   FILES:=$(LINUX_DIR)/drivers/hwmon/lm85.ko
174   AUTOLOAD:=$(call AutoProbe,lm85)
175   $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
176 endef
177
178 define KernelPackage/hwmon-lm85/description
179  Kernel module for LM85 thermal monitor chip
180 endef
181
182 $(eval $(call KernelPackage,hwmon-lm85))
183
184
185 define KernelPackage/hwmon-lm90
186   TITLE:=LM90 monitoring support
187   KCONFIG:=CONFIG_SENSORS_LM90
188   FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.ko
189   AUTOLOAD:=$(call AutoProbe,lm90)
190   $(call AddDepends/hwmon,+kmod-i2c-core)
191 endef
192
193 define KernelPackage/hwmon-lm90/description
194  Kernel module for LM90 thermal monitor chip
195 endef
196
197 $(eval $(call KernelPackage,hwmon-lm90))
198
199 define KernelPackage/hwmon-lm92
200   TITLE:=LM92 monitoring support
201   KCONFIG:=CONFIG_SENSORS_LM92
202   FILES:=$(LINUX_DIR)/drivers/hwmon/lm92.ko
203   AUTOLOAD:=$(call AutoProbe,lm92)
204   $(call AddDepends/hwmon,+kmod-i2c-core)
205 endef
206
207 define KernelPackage/hwmon-lm92/description
208  Kernel module for LM92 thermal monitor chip
209 endef
210
211 $(eval $(call KernelPackage,hwmon-lm92))
212
213 define KernelPackage/hwmon-lm95241
214   TITLE:=LM95241 monitoring support
215   KCONFIG:=CONFIG_SENSORS_LM95241
216   FILES:=$(LINUX_DIR)/drivers/hwmon/lm95241.ko
217   AUTOLOAD:=$(call AutoProbe,lm95241)
218   $(call AddDepends/hwmon,+kmod-i2c-core)
219 endef
220
221 define KernelPackage/hwmon-lm95241/description
222  Kernel module for LM95241 thermal monitor chip
223 endef
224
225 $(eval $(call KernelPackage,hwmon-lm95241))
226
227 define KernelPackage/hwmon-ltc4151
228   TITLE:=LTC4151 monitoring support
229   KCONFIG:=CONFIG_SENSORS_LTC4151
230   FILES:=$(LINUX_DIR)/drivers/hwmon/ltc4151.ko
231   AUTOLOAD:=$(call AutoProbe,ltc4151)
232   $(call AddDepends/hwmon,+kmod-i2c-core)
233 endef
234
235 define KernelPackage/hwmon-ltc4151/description
236  Kernel module for Linear Technology LTC4151 current and voltage monitor chip
237 endef
238
239 $(eval $(call KernelPackage,hwmon-ltc4151))
240
241 define KernelPackage/hwmon-sht21
242   TITLE:=Sensiron SHT21 and compat. monitoring support
243   KCONFIG:=CONFIG_SENSORS_SHT21
244   FILES:=$(LINUX_DIR)/drivers/hwmon/sht21.ko
245   AUTOLOAD:=$(call AutoProbe,sht21)
246   $(call AddDepends/hwmon,+kmod-i2c-core)
247 endef
248
249 define KernelPackage/hwmon-sht21/description
250  Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
251 endef
252
253 $(eval $(call KernelPackage,hwmon-sht21))
254
255 define KernelPackage/hwmon-pc87360
256   TITLE:=PC87360 monitoring support
257   KCONFIG:=CONFIG_SENSORS_PC87360
258   FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.ko
259   AUTOLOAD:=$(call AutoProbe,pc87360)
260   $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
261 endef
262
263 define KernelPackage/hwmon-pc87360/description
264  Kernel modules for PC87360 chips
265 endef
266
267 $(eval $(call KernelPackage,hwmon-pc87360))
268
269
270 define KernelPackage/hwmon-w83627hf
271   TITLE:=Winbond W83627HF monitoring support
272   KCONFIG:=CONFIG_SENSORS_W83627HF
273   FILES:=$(LINUX_DIR)/drivers/hwmon/w83627hf.ko
274   AUTOLOAD:=$(call AutoLoad,50,w83627hf)
275   $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
276 endef
277
278 define KernelPackage/hwmon-w83627hf/description
279   Kernel module for the Winbond W83627HF chips.
280 endef
281
282 $(eval $(call KernelPackage,hwmon-w83627hf))
283
284
285 define KernelPackage/hwmon-gsc
286   TITLE:=Gateworks GSC monitoring support
287   KCONFIG:=CONFIG_SENSORS_GSC
288   FILES:=$(LINUX_DIR)/drivers/hwmon/gsc.ko
289   AUTOLOAD:=$(call AutoLoad,60,gsc)
290   $(call AddDepends/hwmon,+kmod-i2c-core)
291 endef
292
293 define KernelPackage/hwmon-gsc/description
294   Kernel module for the Gateworks System Controller chips.
295 endef
296
297 $(eval $(call KernelPackage,hwmon-gsc))
298
299
300 define KernelPackage/hwmon-tmp421
301   TITLE:=TI TMP421 and compatible monitoring support
302   KCONFIG:=CONFIG_SENSORS_TMP421
303   FILES:=$(LINUX_DIR)/drivers/hwmon/tmp421.ko
304   AUTOLOAD:=$(call AutoLoad,60,tmp421)
305   $(call AddDepends/hwmon,+kmod-i2c-core)
306 endef
307
308 define KernelPackage/hwmon-tmp421/description
309   Kernel module for the Texas Instruments TMP421 and compatible chips.
310 endef
311
312 $(eval $(call KernelPackage,hwmon-tmp421))
313
314
315 define KernelPackage/hwmon-gpiofan
316   TITLE:=Generic GPIO FAN support
317   KCONFIG:=CONFIG_SENSORS_GPIO_FAN
318   FILES:=$(LINUX_DIR)/drivers/hwmon/gpio-fan.ko
319   AUTOLOAD:=$(call AutoLoad,60,gpio-fan)
320   $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal)
321 endef
322
323 define KernelPackage/hwmon-gpiofan/description
324   Kernel module for GPIO controlled FANs
325 endef
326
327 $(eval $(call KernelPackage,hwmon-gpiofan))
328
329
330 define KernelPackage/hwmon-pwmfan
331   TITLE:=Generic PWM FAN support
332   KCONFIG:=CONFIG_SENSORS_PWM_FAN
333   FILES:=$(LINUX_DIR)/drivers/hwmon/pwm-fan.ko
334   AUTOLOAD:=$(call AutoLoad,60,pwm-fan)
335   $(call AddDepends/hwmon, +PACKAGE_kmod-thermal:kmod-thermal)
336 endef
337
338 define KernelPackage/hwmon-pwmfan/description
339   Kernel module for PWM controlled FANs
340 endef
341
342 $(eval $(call KernelPackage,hwmon-pwmfan))
343
344
345 define KernelPackage/hwmon-k10temp
346   TITLE:=AMD Family 10h+ temperature sensor
347   KCONFIG:=CONFIG_SENSORS_K10TEMP
348   FILES:=$(LINUX_DIR)/drivers/hwmon/k10temp.ko
349   AUTOLOAD:=$(call AutoLoad,60,k10temp)
350   $(call AddDepends/hwmon,@PCI_SUPPORT @TARGET_x86)
351 endef
352
353 define KernelPackage/hwmon-k10temp/description
354   Thermal sensor support for AMD 10h, 11h, 12h (Llano), 14h (Brazos),
355   15h (Bulldozer/Trinity/Kaveri) and 16h (Kabini/Mullins) CPUs
356 endef
357
358 $(eval $(call KernelPackage,hwmon-k10temp))