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