kernel: make most modules use AutoProbe
[15.05/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-adt7475
48   TITLE:=ADT7473/7475/7476/7490 monitoring support
49   KCONFIG:=CONFIG_SENSORS_ADT7475
50   FILES:=$(LINUX_DIR)/drivers/hwmon/adt7475.ko
51   AUTOLOAD:=$(call AutoProbe,adt7475)
52   $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
53 endef
54
55 define KernelPackage/hwmon-adt7475/description
56  Kernel module for ADT7473/7475/7476/7490 thermal monitor chip
57 endef
58
59 $(eval $(call KernelPackage,hwmon-adt7475))
60
61
62 define KernelPackage/hwmon-ina2xx
63   TITLE:=INA2XX monitoring support
64   KCONFIG:=CONFIG_SENSORS_INA2XX
65   FILES:=$(LINUX_DIR)/drivers/hwmon/ina2xx.ko
66   AUTOLOAD:=$(call AutoProbe,ina2xx)
67   $(call AddDepends/hwmon,+kmod-i2c-core)
68 endef
69
70 define KernelPackage/hwmon-ina2xx/description
71  Kernel module for ina2xx dc current monitor chips
72 endef
73
74 $(eval $(call KernelPackage,hwmon-ina2xx))
75
76
77 define KernelPackage/hwmon-lm63
78   TITLE:=LM63/64 monitoring support
79   KCONFIG:=CONFIG_SENSORS_LM63
80   FILES:=$(LINUX_DIR)/drivers/hwmon/lm63.ko
81   AUTOLOAD:=$(call AutoProbe,lm63)
82   $(call AddDepends/hwmon,+kmod-i2c-core)
83 endef
84
85 define KernelPackage/hwmon-lm63/description
86  Kernel module for lm63 and lm64 thermal monitor chip
87 endef
88
89 $(eval $(call KernelPackage,hwmon-lm63))
90
91
92 define KernelPackage/hwmon-lm75
93   TITLE:=LM75 monitoring support
94   KCONFIG:=CONFIG_SENSORS_LM75
95   FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.ko
96   AUTOLOAD:=$(call AutoProbe,lm75)
97   $(call AddDepends/hwmon,+kmod-i2c-core)
98 endef
99
100 define KernelPackage/hwmon-lm75/description
101  Kernel module for lm75 thermal monitor chip
102 endef
103
104 $(eval $(call KernelPackage,hwmon-lm75))
105
106
107 define KernelPackage/hwmon-lm77
108   TITLE:=LM77 monitoring support
109   KCONFIG:=CONFIG_SENSORS_LM77
110   FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.ko
111   AUTOLOAD:=$(call AutoProbe,lm77)
112   $(call AddDepends/hwmon,+kmod-i2c-core)
113 endef
114
115 define KernelPackage/hwmon-lm77/description
116  Kernel module for LM77 thermal monitor chip
117 endef
118
119 $(eval $(call KernelPackage,hwmon-lm77))
120
121
122 define KernelPackage/hwmon-lm85
123   TITLE:=LM85 monitoring support
124   KCONFIG:=CONFIG_SENSORS_LM85
125   FILES:=$(LINUX_DIR)/drivers/hwmon/lm85.ko
126   AUTOLOAD:=$(call AutoProbe,lm85)
127   $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
128 endef
129
130 define KernelPackage/hwmon-lm85/description
131  Kernel module for LM85 thermal monitor chip
132 endef
133
134 $(eval $(call KernelPackage,hwmon-lm85))
135
136
137 define KernelPackage/hwmon-lm90
138   TITLE:=LM90 monitoring support
139   KCONFIG:=CONFIG_SENSORS_LM90
140   FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.ko
141   AUTOLOAD:=$(call AutoProbe,lm90)
142   $(call AddDepends/hwmon,+kmod-i2c-core)
143 endef
144
145 define KernelPackage/hwmon-lm90/description
146  Kernel module for LM90 thermal monitor chip
147 endef
148
149 $(eval $(call KernelPackage,hwmon-lm90))
150
151 define KernelPackage/hwmon-lm92
152   TITLE:=LM92 monitoring support
153   KCONFIG:=CONFIG_SENSORS_LM92
154   FILES:=$(LINUX_DIR)/drivers/hwmon/lm92.ko
155   AUTOLOAD:=$(call AutoProbe,lm92)
156   $(call AddDepends/hwmon,+kmod-i2c-core)
157 endef
158
159 define KernelPackage/hwmon-lm92/description
160  Kernel module for LM92 thermal monitor chip
161 endef
162
163 $(eval $(call KernelPackage,hwmon-lm92))
164
165 define KernelPackage/hwmon-lm95241
166   TITLE:=LM95241 monitoring support
167   KCONFIG:=CONFIG_SENSORS_LM95241
168   FILES:=$(LINUX_DIR)/drivers/hwmon/lm95241.ko
169   AUTOLOAD:=$(call AutoProbe,lm95241)
170   $(call AddDepends/hwmon,+kmod-i2c-core)
171 endef
172
173 define KernelPackage/hwmon-lm95241/description
174  Kernel module for LM95241 thermal monitor chip
175 endef
176
177 $(eval $(call KernelPackage,hwmon-lm95241))
178
179 define KernelPackage/hwmon-sht21
180   TITLE:=Sensiron SHT21 and compat. monitoring support
181   KCONFIG:=CONFIG_SENSORS_SHT21
182   FILES:=$(LINUX_DIR)/drivers/hwmon/sht21.ko
183   AUTOLOAD:=$(call AutoProbe,sht21)
184   $(call AddDepends/hwmon,+kmod-i2c-core)
185 endef
186
187 define KernelPackage/hwmon-sht21/description
188  Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
189 endef
190
191 $(eval $(call KernelPackage,hwmon-sht21))
192
193 define KernelPackage/hwmon-pc87360
194   TITLE:=PC87360 monitoring support
195   KCONFIG:=CONFIG_SENSORS_PC87360
196   FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.ko
197   AUTOLOAD:=$(call AutoProbe,pc87360)
198   $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
199 endef
200
201 define KernelPackage/hwmon-pc87360/description
202  Kernel modules for PC87360 chips
203 endef
204
205 $(eval $(call KernelPackage,hwmon-pc87360))
206
207
208 define KernelPackage/hwmon-w83627hf
209   TITLE:=Winbond W83627HF monitoring support
210   KCONFIG:=CONFIG_SENSORS_W83627HF
211   FILES:=$(LINUX_DIR)/drivers/hwmon/w83627hf.ko
212   AUTOLOAD:=$(call AutoLoad,50,w83627hf)
213   $(call AddDepends/hwmon,@TARGET_rdc||TARGET_x86 +kmod-hwmon-vid)
214 endef
215
216 define KernelPacakge/hwmon-w83627hf/description
217   Kernel module for the Winbond W83627HF chips.
218 endef
219
220 $(eval $(call KernelPackage,hwmon-w83627hf))
221
222
223 define KernelPackage/hwmon-gsc
224   TITLE:=Gateworks GSC monitoring support
225   KCONFIG:=CONFIG_SENSORS_GSC
226   FILES:=$(LINUX_DIR)/drivers/hwmon/gsc.ko
227   AUTOLOAD:=$(call AutoLoad,60,gsc)
228   $(call AddDepends/hwmon,+kmod-i2c-core)
229 endef
230
231 define KernelPacakge/hwmon-gsc/description
232   Kernel module for the Gateworks System Controller chips.
233 endef
234
235 $(eval $(call KernelPackage,hwmon-gsc))