[usb ethernet gadget]: handle new libs required for new kernels
[openwrt.git] / package / kernel / linux / modules / hwmon.mk
1 #
2 # Copyright (C) 2006-2010 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 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.10.0)),1)
50   KCONFIG:= \
51         CONFIG_SENSORS_ADT7X10 \
52         CONFIG_SENSORS_ADT7410
53   FILES:= \
54         $(LINUX_DIR)/drivers/hwmon/adt7x10.ko \
55         $(LINUX_DIR)/drivers/hwmon/adt7410.ko
56   AUTOLOAD:=$(call AutoLoad,60,adt7x10 adt7410)
57 else
58   KCONFIG:=CONFIG_SENSORS_ADT7410
59   FILES:=$(LINUX_DIR)/drivers/hwmon/adt7410.ko
60   AUTOLOAD:=$(call AutoLoad,60,adt7410)
61 endif
62   $(call AddDepends/hwmon,+kmod-i2c-core @!(LINUX_3_3||LINUX_3_6))
63 endef
64
65 define KernelPackage/hwmon-adt7410/description
66  Kernel module for ADT7410/7420 I2C thermal monitor chip
67 endef
68
69 $(eval $(call KernelPackage,hwmon-adt7410))
70
71
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)
78 endef
79
80 define KernelPackage/hwmon-adt7475/description
81  Kernel module for ADT7473/7475/7476/7490 thermal monitor chip
82 endef
83
84 $(eval $(call KernelPackage,hwmon-adt7475))
85
86
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)
93 endef
94
95 define KernelPackage/hwmon-ina2xx/description
96  Kernel module for ina2xx dc current monitor chips
97 endef
98
99 $(eval $(call KernelPackage,hwmon-ina2xx))
100
101
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)
108 endef
109
110 define KernelPackage/hwmon-lm63/description
111  Kernel module for lm63 and lm64 thermal monitor chip
112 endef
113
114 $(eval $(call KernelPackage,hwmon-lm63))
115
116
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)
123 endef
124
125 define KernelPackage/hwmon-lm75/description
126  Kernel module for lm75 thermal monitor chip
127 endef
128
129 $(eval $(call KernelPackage,hwmon-lm75))
130
131
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)
138 endef
139
140 define KernelPackage/hwmon-lm77/description
141  Kernel module for LM77 thermal monitor chip
142 endef
143
144 $(eval $(call KernelPackage,hwmon-lm77))
145
146
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)
153 endef
154
155 define KernelPackage/hwmon-lm85/description
156  Kernel module for LM85 thermal monitor chip
157 endef
158
159 $(eval $(call KernelPackage,hwmon-lm85))
160
161
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)
168 endef
169
170 define KernelPackage/hwmon-lm90/description
171  Kernel module for LM90 thermal monitor chip
172 endef
173
174 $(eval $(call KernelPackage,hwmon-lm90))
175
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)
182 endef
183
184 define KernelPackage/hwmon-lm92/description
185  Kernel module for LM92 thermal monitor chip
186 endef
187
188 $(eval $(call KernelPackage,hwmon-lm92))
189
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)
196 endef
197
198 define KernelPackage/hwmon-lm95241/description
199  Kernel module for LM95241 thermal monitor chip
200 endef
201
202 $(eval $(call KernelPackage,hwmon-lm95241))
203
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)
210 endef
211
212 define KernelPackage/hwmon-sht21/description
213  Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
214 endef
215
216 $(eval $(call KernelPackage,hwmon-sht21))
217
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)
224 endef
225
226 define KernelPackage/hwmon-pc87360/description
227  Kernel modules for PC87360 chips
228 endef
229
230 $(eval $(call KernelPackage,hwmon-pc87360))
231
232
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)
239 endef
240
241 define KernelPacakge/hwmon-w83627hf/description
242   Kernel module for the Winbond W83627HF chips.
243 endef
244
245 $(eval $(call KernelPackage,hwmon-w83627hf))
246
247
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)
254 endef
255
256 define KernelPacakge/hwmon-gsc/description
257   Kernel module for the Gateworks System Controller chips.
258 endef
259
260 $(eval $(call KernelPackage,hwmon-gsc))