package/kernel: move hwmon-vid into a separate package
[openwrt/svn-archive/archive.git] / package / kernel / 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,40,hwmon)
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-lm63
49 TITLE:=LM63/64 monitoring support
50 KCONFIG:=CONFIG_SENSORS_LM63
51 FILES:=$(LINUX_DIR)/drivers/hwmon/lm63.ko
52 AUTOLOAD:=$(call AutoLoad,60,lm63)
53 $(call AddDepends/hwmon,+kmod-i2c-core)
54 endef
55
56 define KernelPackage/hwmon-lm63/description
57 Kernel module for lm63 and lm64 thermal monitor chip
58 endef
59
60 $(eval $(call KernelPackage,hwmon-lm63))
61
62
63 define KernelPackage/hwmon-lm75
64 TITLE:=LM75 monitoring support
65 KCONFIG:=CONFIG_SENSORS_LM75
66 FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.ko
67 AUTOLOAD:=$(call AutoLoad,60,lm75)
68 $(call AddDepends/hwmon,+kmod-i2c-core)
69 endef
70
71 define KernelPackage/hwmon-lm75/description
72 Kernel module for lm75 thermal monitor chip
73 endef
74
75 $(eval $(call KernelPackage,hwmon-lm75))
76
77
78 define KernelPackage/hwmon-lm77
79 TITLE:=LM77 monitoring support
80 KCONFIG:=CONFIG_SENSORS_LM77
81 FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.ko
82 AUTOLOAD:=$(call AutoLoad,60,lm77)
83 $(call AddDepends/hwmon,+kmod-i2c-core)
84 endef
85
86 define KernelPackage/hwmon-lm77/description
87 Kernel module for LM77 thermal monitor chip
88 endef
89
90 $(eval $(call KernelPackage,hwmon-lm77))
91
92
93 define KernelPackage/hwmon-lm90
94 TITLE:=LM90 monitoring support
95 KCONFIG:=CONFIG_SENSORS_LM90
96 FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.ko
97 AUTOLOAD:=$(call AutoLoad,60,lm90)
98 $(call AddDepends/hwmon,+kmod-i2c-core)
99 endef
100
101 define KernelPackage/hwmon-lm90/description
102 Kernel module for LM90 thermal monitor chip
103 endef
104
105 $(eval $(call KernelPackage,hwmon-lm90))
106
107 define KernelPackage/hwmon-lm95241
108 TITLE:=LM95241 monitoring support
109 KCONFIG:=CONFIG_SENSORS_LM95241
110 FILES:=$(LINUX_DIR)/drivers/hwmon/lm95241.ko
111 AUTOLOAD:=$(call AutoLoad,60,lm95241)
112 $(call AddDepends/hwmon,+kmod-i2c-core)
113 endef
114
115 define KernelPackage/hwmon-lm95241/description
116 Kernel module for LM95241 thermal monitor chip
117 endef
118
119 $(eval $(call KernelPackage,hwmon-lm95241))
120
121 define KernelPackage/hwmon-sht21
122 TITLE:=Sensiron SHT21 and compat. monitoring support
123 KCONFIG:=CONFIG_SENSORS_SHT21
124 FILES:=$(LINUX_DIR)/drivers/hwmon/sht21.ko
125 AUTOLOAD:=$(call AutoLoad,60,sht21)
126 $(call AddDepends/hwmon,+kmod-i2c-core)
127 endef
128
129 define KernelPackage/hwmon-sht21/description
130 Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
131 endef
132
133 $(eval $(call KernelPackage,hwmon-sht21))
134
135 define KernelPackage/hwmon-pc87360
136 TITLE:=PC87360 monitoring support
137 KCONFIG:=CONFIG_SENSORS_PC87360
138 FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.ko
139 AUTOLOAD:=$(call AutoLoad,50,pc87360)
140 $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
141 endef
142
143 define KernelPackage/hwmon-pc87360/description
144 Kernel modules for PC87360 chips
145 endef
146
147 $(eval $(call KernelPackage,hwmon-pc87360))
148
149
150 define KernelPackage/hwmon-w83627hf
151 TITLE:=Winbond W83627HF monitoring support
152 KCONFIG:=CONFIG_SENSORS_W83627HF
153 FILES:=$(LINUX_DIR)/drivers/hwmon/w83627hf.ko
154 AUTOLOAD:=$(call AutoLoad,50,w83627hf)
155 $(call AddDepends/hwmon,@TARGET_rdc||TARGET_x86 +kmod-hwmon-vid)
156 endef
157
158 define KernelPacakge/hwmon-w83627hf/description
159 Kernel module for the Winbond W83627HF chips.
160 endef
161
162 $(eval $(call KernelPackage,hwmon-w83627hf))