2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 HWMON_MENU:=Hardware Monitoring Support
10 define KernelPackage/hwmon-core
11 SUBMENU:=$(HWMON_MENU)
12 TITLE:=Hardware monitoring support
15 CONFIG_HWMON_DEBUG_CHIP=n
17 $(LINUX_DIR)/drivers/hwmon/hwmon.ko
20 define KernelPackage/hwmon-core/description
21 Kernel modules for hardware monitoring
24 $(eval $(call KernelPackage,hwmon-core))
27 define AddDepends/hwmon
28 SUBMENU:=$(HWMON_MENU)
29 DEPENDS:=kmod-hwmon-core $(1)
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,)
40 define KernelPackage/hwmon-vid/description
41 VID/VRM/VRD voltage conversion module for hardware monitoring
44 $(eval $(call KernelPackage,hwmon-vid))
47 define KernelPackage/hwmon-adt7410
48 TITLE:=ADT7410 monitoring support
49 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.10.0)),1)
51 CONFIG_SENSORS_ADT7X10 \
52 CONFIG_SENSORS_ADT7410
54 $(LINUX_DIR)/drivers/hwmon/adt7x10.ko \
55 $(LINUX_DIR)/drivers/hwmon/adt7410.ko
56 AUTOLOAD:=$(call AutoLoad,60,adt7x10 adt7410)
58 KCONFIG:=CONFIG_SENSORS_ADT7410
59 FILES:=$(LINUX_DIR)/drivers/hwmon/adt7410.ko
60 AUTOLOAD:=$(call AutoLoad,60,adt7410)
62 $(call AddDepends/hwmon,+kmod-i2c-core @!(LINUX_3_3||LINUX_3_6))
65 define KernelPackage/hwmon-adt7410/description
66 Kernel module for ADT7410/7420 I2C thermal monitor chip
69 $(eval $(call KernelPackage,hwmon-adt7410))
72 define KernelPackage/hwmon-adt7475
73 TITLE:=ADT7473/7475/7476/7490 monitoring support
74 KCONFIG:=CONFIG_SENSORS_ADT7475
75 FILES:=$(LINUX_DIR)/drivers/hwmon/adt7475.ko
76 AUTOLOAD:=$(call AutoProbe,adt7475)
77 $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
80 define KernelPackage/hwmon-adt7475/description
81 Kernel module for ADT7473/7475/7476/7490 thermal monitor chip
84 $(eval $(call KernelPackage,hwmon-adt7475))
87 define KernelPackage/hwmon-ina2xx
88 TITLE:=INA2XX monitoring support
89 KCONFIG:=CONFIG_SENSORS_INA2XX
90 FILES:=$(LINUX_DIR)/drivers/hwmon/ina2xx.ko
91 AUTOLOAD:=$(call AutoProbe,ina2xx)
92 $(call AddDepends/hwmon,+kmod-i2c-core)
95 define KernelPackage/hwmon-ina2xx/description
96 Kernel module for ina2xx dc current monitor chips
99 $(eval $(call KernelPackage,hwmon-ina2xx))
102 define KernelPackage/hwmon-lm63
103 TITLE:=LM63/64 monitoring support
104 KCONFIG:=CONFIG_SENSORS_LM63
105 FILES:=$(LINUX_DIR)/drivers/hwmon/lm63.ko
106 AUTOLOAD:=$(call AutoProbe,lm63)
107 $(call AddDepends/hwmon,+kmod-i2c-core)
110 define KernelPackage/hwmon-lm63/description
111 Kernel module for lm63 and lm64 thermal monitor chip
114 $(eval $(call KernelPackage,hwmon-lm63))
117 define KernelPackage/hwmon-lm75
118 TITLE:=LM75 monitoring support
119 KCONFIG:=CONFIG_SENSORS_LM75
120 FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.ko
121 AUTOLOAD:=$(call AutoProbe,lm75)
122 $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal)
125 define KernelPackage/hwmon-lm75/description
126 Kernel module for lm75 thermal monitor chip
129 $(eval $(call KernelPackage,hwmon-lm75))
132 define KernelPackage/hwmon-lm77
133 TITLE:=LM77 monitoring support
134 KCONFIG:=CONFIG_SENSORS_LM77
135 FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.ko
136 AUTOLOAD:=$(call AutoProbe,lm77)
137 $(call AddDepends/hwmon,+kmod-i2c-core)
140 define KernelPackage/hwmon-lm77/description
141 Kernel module for LM77 thermal monitor chip
144 $(eval $(call KernelPackage,hwmon-lm77))
147 define KernelPackage/hwmon-lm85
148 TITLE:=LM85 monitoring support
149 KCONFIG:=CONFIG_SENSORS_LM85
150 FILES:=$(LINUX_DIR)/drivers/hwmon/lm85.ko
151 AUTOLOAD:=$(call AutoProbe,lm85)
152 $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
155 define KernelPackage/hwmon-lm85/description
156 Kernel module for LM85 thermal monitor chip
159 $(eval $(call KernelPackage,hwmon-lm85))
162 define KernelPackage/hwmon-lm90
163 TITLE:=LM90 monitoring support
164 KCONFIG:=CONFIG_SENSORS_LM90
165 FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.ko
166 AUTOLOAD:=$(call AutoProbe,lm90)
167 $(call AddDepends/hwmon,+kmod-i2c-core)
170 define KernelPackage/hwmon-lm90/description
171 Kernel module for LM90 thermal monitor chip
174 $(eval $(call KernelPackage,hwmon-lm90))
176 define KernelPackage/hwmon-lm92
177 TITLE:=LM92 monitoring support
178 KCONFIG:=CONFIG_SENSORS_LM92
179 FILES:=$(LINUX_DIR)/drivers/hwmon/lm92.ko
180 AUTOLOAD:=$(call AutoProbe,lm92)
181 $(call AddDepends/hwmon,+kmod-i2c-core)
184 define KernelPackage/hwmon-lm92/description
185 Kernel module for LM92 thermal monitor chip
188 $(eval $(call KernelPackage,hwmon-lm92))
190 define KernelPackage/hwmon-lm95241
191 TITLE:=LM95241 monitoring support
192 KCONFIG:=CONFIG_SENSORS_LM95241
193 FILES:=$(LINUX_DIR)/drivers/hwmon/lm95241.ko
194 AUTOLOAD:=$(call AutoProbe,lm95241)
195 $(call AddDepends/hwmon,+kmod-i2c-core)
198 define KernelPackage/hwmon-lm95241/description
199 Kernel module for LM95241 thermal monitor chip
202 $(eval $(call KernelPackage,hwmon-lm95241))
204 define KernelPackage/hwmon-sht21
205 TITLE:=Sensiron SHT21 and compat. monitoring support
206 KCONFIG:=CONFIG_SENSORS_SHT21
207 FILES:=$(LINUX_DIR)/drivers/hwmon/sht21.ko
208 AUTOLOAD:=$(call AutoProbe,sht21)
209 $(call AddDepends/hwmon,+kmod-i2c-core)
212 define KernelPackage/hwmon-sht21/description
213 Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
216 $(eval $(call KernelPackage,hwmon-sht21))
218 define KernelPackage/hwmon-pc87360
219 TITLE:=PC87360 monitoring support
220 KCONFIG:=CONFIG_SENSORS_PC87360
221 FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.ko
222 AUTOLOAD:=$(call AutoProbe,pc87360)
223 $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
226 define KernelPackage/hwmon-pc87360/description
227 Kernel modules for PC87360 chips
230 $(eval $(call KernelPackage,hwmon-pc87360))
233 define KernelPackage/hwmon-w83627hf
234 TITLE:=Winbond W83627HF monitoring support
235 KCONFIG:=CONFIG_SENSORS_W83627HF
236 FILES:=$(LINUX_DIR)/drivers/hwmon/w83627hf.ko
237 AUTOLOAD:=$(call AutoLoad,50,w83627hf)
238 $(call AddDepends/hwmon,@TARGET_rdc||TARGET_x86 +kmod-hwmon-vid)
241 define KernelPacakge/hwmon-w83627hf/description
242 Kernel module for the Winbond W83627HF chips.
245 $(eval $(call KernelPackage,hwmon-w83627hf))
248 define KernelPackage/hwmon-gsc
249 TITLE:=Gateworks GSC monitoring support
250 KCONFIG:=CONFIG_SENSORS_GSC
251 FILES:=$(LINUX_DIR)/drivers/hwmon/gsc.ko
252 AUTOLOAD:=$(call AutoLoad,60,gsc)
253 $(call AddDepends/hwmon,+kmod-i2c-core)
256 define KernelPacakge/hwmon-gsc/description
257 Kernel module for the Gateworks System Controller chips.
260 $(eval $(call KernelPackage,hwmon-gsc))
263 define KernelPackage/hwmon-tmp421
264 TITLE:=TI TMP421 and compatible monitoring support
265 KCONFIG:=CONFIG_SENSORS_TMP421
266 FILES:=$(LINUX_DIR)/drivers/hwmon/tmp421.ko
267 AUTOLOAD:=$(call AutoLoad,60,tmp421)
268 $(call AddDepends/hwmon,+kmod-i2c-core)
271 define KernelPacakge/hwmon-tmp421/description
272 Kernel module for the Texas Instruments TMP421 and compatible chips.
275 $(eval $(call KernelPackage,hwmon-tmp421))
278 define KernelPackage/hwmon-gpiofan
279 TITLE:=Generic GPIO FAN support
280 KCONFIG:=CONFIG_SENSORS_GPIO_FAN
281 FILES:=$(LINUX_DIR)/drivers/hwmon/gpio-fan.ko
282 AUTOLOAD:=$(call AutoLoad,60,gpio-fan)
283 $(call AddDepends/hwmon,+kmod-i2c-core)
286 define KernelPacakge/hwmon-gpiofan/description
287 Kernel module for GPIO controlled FANs
290 $(eval $(call KernelPackage,hwmon-gpiofan))