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