kernel: make kmod-thermal dependency conditional to match upstream kernel module...
[openwrt/openwrt.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-ina2xx
82 TITLE:=INA2XX monitoring support
83 KCONFIG:=CONFIG_SENSORS_INA2XX
84 FILES:=$(LINUX_DIR)/drivers/hwmon/ina2xx.ko
85 AUTOLOAD:=$(call AutoProbe,ina2xx)
86 $(call AddDepends/hwmon,+kmod-i2c-core +LINUX_4_4:kmod-regmap)
87 endef
88
89 define KernelPackage/hwmon-ina2xx/description
90 Kernel module for ina2xx dc current monitor chips
91 endef
92
93 $(eval $(call KernelPackage,hwmon-ina2xx))
94
95
96 define KernelPackage/hwmon-lm63
97 TITLE:=LM63/64 monitoring support
98 KCONFIG:=CONFIG_SENSORS_LM63
99 FILES:=$(LINUX_DIR)/drivers/hwmon/lm63.ko
100 AUTOLOAD:=$(call AutoProbe,lm63)
101 $(call AddDepends/hwmon,+kmod-i2c-core)
102 endef
103
104 define KernelPackage/hwmon-lm63/description
105 Kernel module for lm63 and lm64 thermal monitor chip
106 endef
107
108 $(eval $(call KernelPackage,hwmon-lm63))
109
110
111 define KernelPackage/hwmon-lm75
112 TITLE:=LM75 monitoring support
113 KCONFIG:=CONFIG_SENSORS_LM75
114 FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.ko
115 AUTOLOAD:=$(call AutoProbe,lm75)
116 $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal)
117 endef
118
119 define KernelPackage/hwmon-lm75/description
120 Kernel module for lm75 thermal monitor chip
121 endef
122
123 $(eval $(call KernelPackage,hwmon-lm75))
124
125
126 define KernelPackage/hwmon-lm77
127 TITLE:=LM77 monitoring support
128 KCONFIG:=CONFIG_SENSORS_LM77
129 FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.ko
130 AUTOLOAD:=$(call AutoProbe,lm77)
131 $(call AddDepends/hwmon,+kmod-i2c-core)
132 endef
133
134 define KernelPackage/hwmon-lm77/description
135 Kernel module for LM77 thermal monitor chip
136 endef
137
138 $(eval $(call KernelPackage,hwmon-lm77))
139
140
141 define KernelPackage/hwmon-lm85
142 TITLE:=LM85 monitoring support
143 KCONFIG:=CONFIG_SENSORS_LM85
144 FILES:=$(LINUX_DIR)/drivers/hwmon/lm85.ko
145 AUTOLOAD:=$(call AutoProbe,lm85)
146 $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
147 endef
148
149 define KernelPackage/hwmon-lm85/description
150 Kernel module for LM85 thermal monitor chip
151 endef
152
153 $(eval $(call KernelPackage,hwmon-lm85))
154
155
156 define KernelPackage/hwmon-lm90
157 TITLE:=LM90 monitoring support
158 KCONFIG:=CONFIG_SENSORS_LM90
159 FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.ko
160 AUTOLOAD:=$(call AutoProbe,lm90)
161 $(call AddDepends/hwmon,+kmod-i2c-core)
162 endef
163
164 define KernelPackage/hwmon-lm90/description
165 Kernel module for LM90 thermal monitor chip
166 endef
167
168 $(eval $(call KernelPackage,hwmon-lm90))
169
170 define KernelPackage/hwmon-lm92
171 TITLE:=LM92 monitoring support
172 KCONFIG:=CONFIG_SENSORS_LM92
173 FILES:=$(LINUX_DIR)/drivers/hwmon/lm92.ko
174 AUTOLOAD:=$(call AutoProbe,lm92)
175 $(call AddDepends/hwmon,+kmod-i2c-core)
176 endef
177
178 define KernelPackage/hwmon-lm92/description
179 Kernel module for LM92 thermal monitor chip
180 endef
181
182 $(eval $(call KernelPackage,hwmon-lm92))
183
184 define KernelPackage/hwmon-lm95241
185 TITLE:=LM95241 monitoring support
186 KCONFIG:=CONFIG_SENSORS_LM95241
187 FILES:=$(LINUX_DIR)/drivers/hwmon/lm95241.ko
188 AUTOLOAD:=$(call AutoProbe,lm95241)
189 $(call AddDepends/hwmon,+kmod-i2c-core)
190 endef
191
192 define KernelPackage/hwmon-lm95241/description
193 Kernel module for LM95241 thermal monitor chip
194 endef
195
196 $(eval $(call KernelPackage,hwmon-lm95241))
197
198 define KernelPackage/hwmon-sht21
199 TITLE:=Sensiron SHT21 and compat. monitoring support
200 KCONFIG:=CONFIG_SENSORS_SHT21
201 FILES:=$(LINUX_DIR)/drivers/hwmon/sht21.ko
202 AUTOLOAD:=$(call AutoProbe,sht21)
203 $(call AddDepends/hwmon,+kmod-i2c-core)
204 endef
205
206 define KernelPackage/hwmon-sht21/description
207 Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
208 endef
209
210 $(eval $(call KernelPackage,hwmon-sht21))
211
212 define KernelPackage/hwmon-pc87360
213 TITLE:=PC87360 monitoring support
214 KCONFIG:=CONFIG_SENSORS_PC87360
215 FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.ko
216 AUTOLOAD:=$(call AutoProbe,pc87360)
217 $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
218 endef
219
220 define KernelPackage/hwmon-pc87360/description
221 Kernel modules for PC87360 chips
222 endef
223
224 $(eval $(call KernelPackage,hwmon-pc87360))
225
226
227 define KernelPackage/hwmon-w83627hf
228 TITLE:=Winbond W83627HF monitoring support
229 KCONFIG:=CONFIG_SENSORS_W83627HF
230 FILES:=$(LINUX_DIR)/drivers/hwmon/w83627hf.ko
231 AUTOLOAD:=$(call AutoLoad,50,w83627hf)
232 $(call AddDepends/hwmon,@TARGET_rdc||TARGET_x86 +kmod-hwmon-vid)
233 endef
234
235 define KernelPackage/hwmon-w83627hf/description
236 Kernel module for the Winbond W83627HF chips.
237 endef
238
239 $(eval $(call KernelPackage,hwmon-w83627hf))
240
241
242 define KernelPackage/hwmon-gsc
243 TITLE:=Gateworks GSC monitoring support
244 KCONFIG:=CONFIG_SENSORS_GSC
245 FILES:=$(LINUX_DIR)/drivers/hwmon/gsc.ko
246 AUTOLOAD:=$(call AutoLoad,60,gsc)
247 $(call AddDepends/hwmon,+kmod-i2c-core)
248 endef
249
250 define KernelPackage/hwmon-gsc/description
251 Kernel module for the Gateworks System Controller chips.
252 endef
253
254 $(eval $(call KernelPackage,hwmon-gsc))
255
256
257 define KernelPackage/hwmon-tmp421
258 TITLE:=TI TMP421 and compatible monitoring support
259 KCONFIG:=CONFIG_SENSORS_TMP421
260 FILES:=$(LINUX_DIR)/drivers/hwmon/tmp421.ko
261 AUTOLOAD:=$(call AutoLoad,60,tmp421)
262 $(call AddDepends/hwmon,+kmod-i2c-core)
263 endef
264
265 define KernelPackage/hwmon-tmp421/description
266 Kernel module for the Texas Instruments TMP421 and compatible chips.
267 endef
268
269 $(eval $(call KernelPackage,hwmon-tmp421))
270
271
272 define KernelPackage/hwmon-gpiofan
273 TITLE:=Generic GPIO FAN support
274 KCONFIG:=CONFIG_SENSORS_GPIO_FAN
275 FILES:=$(LINUX_DIR)/drivers/hwmon/gpio-fan.ko
276 AUTOLOAD:=$(call AutoLoad,60,gpio-fan)
277 $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal)
278 endef
279
280 define KernelPackage/hwmon-gpiofan/description
281 Kernel module for GPIO controlled FANs
282 endef
283
284 $(eval $(call KernelPackage,hwmon-gpiofan))
285
286
287 define KernelPackage/hwmon-pwmfan
288 TITLE:=Generic PWM FAN support
289 KCONFIG:=CONFIG_SENSORS_PWM_FAN
290 FILES:=$(LINUX_DIR)/drivers/hwmon/pwm-fan.ko
291 AUTOLOAD:=$(call AutoLoad,60,pwm-fan)
292 $(call AddDepends/hwmon,)
293 endef
294
295 define KernelPackage/hwmon-pwmfan/description
296 Kernel module for PWM controlled FANs
297 endef
298
299 $(eval $(call KernelPackage,hwmon-pwmfan))
300
301
302 define KernelPackage/hwmon-k10temp
303 TITLE:=AMD Family 10h+ temperature sensor
304 KCONFIG:=CONFIG_SENSORS_K10TEMP
305 FILES:=$(LINUX_DIR)/drivers/hwmon/k10temp.ko
306 AUTOLOAD:=$(call AutoLoad,60,k10temp)
307 $(call AddDepends/hwmon,@PCI_SUPPORT @TARGET_x86)
308 endef
309
310 define KernelPackage/hwmon-k10temp/description
311 Thermal sensor support for AMD 10h, 11h, 12h (Llano), 14h (Brazos),
312 15h (Bulldozer/Trinity/Kaveri) and 16h (Kabini/Mullins) CPUs
313 endef
314
315 $(eval $(call KernelPackage,hwmon-k10temp))