kernel/modules: package driver for the LM75 sensor
[openwrt/staging/yousong.git] / package / kernel / modules / hwmon.mk
1 #
2 # Copyright (C) 2006,2007 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 DEPENDS:=@LINUX_2_6
14 KCONFIG:= \
15 CONFIG_HWMON \
16 CONFIG_HWMON_DEBUG_CHIP=n
17 FILES:= \
18 $(LINUX_DIR)/drivers/hwmon/hwmon.$(LINUX_KMOD_SUFFIX)
19 AUTOLOAD:=$(call AutoLoad,40,hwmon)
20 endef
21
22 define KernelPackage/hwmon-core/description
23 Kernel modules for hardware monitoring
24 endef
25
26 $(eval $(call KernelPackage,hwmon-core))
27
28
29 define KernelPackage/hwmon-lm75
30 SUBMENU:=$(HWMON_MENU)
31 TITLE:=LM75 monitoring support
32 DEPENDS:=kmod-hwmon-core +kmod-i2c-core
33 KCONFIG:=CONFIG_SENSORS_LM75
34 FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.$(LINUX_KMOD_SUFFIX)
35 AUTOLOAD:=$(call AutoLoad,60,lm75)
36 endef
37
38 define KernelPackage/hwmon-lm75/description
39 Kernel module for lm75 thermal monitor chip
40 endef
41
42 $(eval $(call KernelPackage,hwmon-lm75))
43
44
45 define KernelPackage/hwmon-lm77
46 SUBMENU:=$(HWMON_MENU)
47 TITLE:=LM77 monitoring support
48 DEPENDS:=kmod-hwmon-core +kmod-i2c-core
49 KCONFIG:=CONFIG_SENSORS_LM77
50 FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.$(LINUX_KMOD_SUFFIX)
51 AUTOLOAD:=$(call AutoLoad,60,lm77)
52 endef
53
54 define KernelPackage/hwmon-lm77/description
55 Kernel module for LM77 thermal monitor chip
56 endef
57
58 $(eval $(call KernelPackage,hwmon-lm77))
59
60 define KernelPackage/hwmon-lm90
61 SUBMENU:=$(HWMON_MENU)
62 TITLE:=LM90 monitoring support
63 DEPENDS:=kmod-hwmon-core +kmod-i2c-core
64 KCONFIG:=CONFIG_SENSORS_LM90
65 FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.$(LINUX_KMOD_SUFFIX)
66 AUTOLOAD:=$(call AutoLoad,60,lm90)
67 endef
68
69 define KernelPackage/hwmon-lm90/description
70 Kernel module for LM90 thermal monitor chip
71 endef
72
73 $(eval $(call KernelPackage,hwmon-lm90))
74
75 define KernelPackage/hwmon-pc87360
76 SUBMENU:=$(HWMON_MENU)
77 TITLE:=PC87360 monitoring support
78 DEPENDS:=kmod-hwmon-core @TARGET_x86
79 KCONFIG:= \
80 CONFIG_SENSORS_PC87360 \
81 CONFIG_HWMON_VID
82 FILES:= \
83 $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX) \
84 $(LINUX_DIR)/drivers/hwmon/pc87360.$(LINUX_KMOD_SUFFIX)
85 AUTOLOAD:=$(call AutoLoad,50,hwmon-vid pc87360)
86 endef
87
88 define KernelPackage/hwmon-pc87360/description
89 Kernel modules for PC87360 chips
90 endef
91
92 $(eval $(call KernelPackage,hwmon-pc87360))
93
94 define KernelPackage/hwmon-w83627hf
95 SUBMENU:=$(HWMON_MENU)
96 TITLE:=Winbond W83627HF monitoring support
97 DEPENDS:=kmod-hwmon-core @TARGET_x86||TARGET_rdc
98 KCONFIG:= \
99 CONFIG_SENSORS_W83627HF \
100 CONFIG_HWMON_VID
101 FILES:= \
102 $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX) \
103 $(LINUX_DIR)/drivers/hwmon/w83627hf.$(LINUX_KMOD_SUFFIX)
104 AUTOLOAD:=$(call AutoLoad,50,hwmon-vid w83627h)
105 endef
106
107 define KernelPacakge/hwmon-w83627hf/description
108 Kernel module for the Winbond W83627HF chips.
109 endef
110
111 $(eval $(call KernelPackage,hwmon-w83627hf))