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