summaryrefslogtreecommitdiff
path: root/package/kernel/linux
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-09-25 18:00:34 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-09-25 18:00:34 +0000
commitcb328ec0d30f5af080f00b2fef820bcd0bc10a01 (patch)
treeebba7c45449ba7fc413920a84db510f19b6d0aea /package/kernel/linux
parent4544d99e4140e0c92b8ae9686d6e7207ba79dae5 (diff)
package/kernel: add hwmon driver for ADT7410
Add support for the ADT7410 hwmon driver, a high precision I2C temperature sensor. Signed-off-by: Hartmut Knaack <knaack.h@gmx.de> [juhosg: update subject, reformat commit message] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38186 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/linux')
-rw-r--r--package/kernel/linux/modules/hwmon.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/hwmon.mk b/package/kernel/linux/modules/hwmon.mk
index 5d117be27e..9dd47344de 100644
--- a/package/kernel/linux/modules/hwmon.mk
+++ b/package/kernel/linux/modules/hwmon.mk
@@ -44,6 +44,31 @@ endef
$(eval $(call KernelPackage,hwmon-vid))
+define KernelPackage/hwmon-adt7410
+ TITLE:=ADT7410 monitoring support
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.10.0)),1)
+ KCONFIG:= \
+ CONFIG_SENSORS_ADT7X10 \
+ CONFIG_SENSORS_ADT7410
+ FILES:= \
+ $(LINUX_DIR)/drivers/hwmon/adt7x10.ko \
+ $(LINUX_DIR)/drivers/hwmon/adt7410.ko
+ AUTOLOAD:=$(call AutoLoad,60,adt7x10 adt7410)
+else
+ KCONFIG:=CONFIG_SENSORS_ADT7410
+ FILES:=$(LINUX_DIR)/drivers/hwmon/adt7410.ko
+ AUTOLOAD:=$(call AutoLoad,60,adt7410)
+endif
+ $(call AddDepends/hwmon,+kmod-i2c-core @!(LINUX_3_3||LINUX_3_6))
+endef
+
+define KernelPackage/hwmon-adt7410/description
+ Kernel module for ADT7410/7420 I2C thermal monitor chip
+endef
+
+$(eval $(call KernelPackage,hwmon-adt7410))
+
+
define KernelPackage/hwmon-adt7475
TITLE:=ADT7473/7475/7476/7490 monitoring support
KCONFIG:=CONFIG_SENSORS_ADT7475