X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=package%2Fkernel%2Flinux%2Fmodules%2Fhwmon.mk;h=971e653855d4763ccd122f7d6865b3d3f4e92989;hp=90f2197aa9789927858e33031d679b95f2171b15;hb=42e950ec7532b34f8a047f003c43840a0bb11256;hpb=762ddec48b7d0458f4b8f05bf7990e42d89e3760 diff --git a/package/kernel/linux/modules/hwmon.mk b/package/kernel/linux/modules/hwmon.mk index 90f2197aa9..971e653855 100644 --- a/package/kernel/linux/modules/hwmon.mk +++ b/package/kernel/linux/modules/hwmon.mk @@ -46,7 +46,6 @@ $(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 @@ -54,12 +53,7 @@ ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.10.0)),1) $(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)) + $(call AddDepends/hwmon,+kmod-i2c-core) endef define KernelPackage/hwmon-adt7410/description @@ -119,7 +113,7 @@ define KernelPackage/hwmon-lm75 KCONFIG:=CONFIG_SENSORS_LM75 FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.ko AUTOLOAD:=$(call AutoProbe,lm75) - $(call AddDepends/hwmon,+kmod-i2c-core +kmod-thermal) + $(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal) endef define KernelPackage/hwmon-lm75/description @@ -238,7 +232,7 @@ define KernelPackage/hwmon-w83627hf $(call AddDepends/hwmon,@TARGET_rdc||TARGET_x86 +kmod-hwmon-vid) endef -define KernelPacakge/hwmon-w83627hf/description +define KernelPackage/hwmon-w83627hf/description Kernel module for the Winbond W83627HF chips. endef @@ -253,7 +247,7 @@ define KernelPackage/hwmon-gsc $(call AddDepends/hwmon,+kmod-i2c-core) endef -define KernelPacakge/hwmon-gsc/description +define KernelPackage/hwmon-gsc/description Kernel module for the Gateworks System Controller chips. endef @@ -268,7 +262,7 @@ define KernelPackage/hwmon-tmp421 $(call AddDepends/hwmon,+kmod-i2c-core) endef -define KernelPacakge/hwmon-tmp421/description +define KernelPackage/hwmon-tmp421/description Kernel module for the Texas Instruments TMP421 and compatible chips. endef @@ -283,8 +277,40 @@ define KernelPackage/hwmon-gpiofan $(call AddDepends/hwmon,+kmod-i2c-core) endef -define KernelPacakge/hwmon-gpiofan/description +define KernelPackage/hwmon-gpiofan/description Kernel module for GPIO controlled FANs endef $(eval $(call KernelPackage,hwmon-gpiofan)) + + +define KernelPackage/hwmon-pwmfan + TITLE:=Generic PWM FAN support + KCONFIG:=CONFIG_SENSORS_PWM_FAN + FILES:=$(LINUX_DIR)/drivers/hwmon/pwm-fan.ko + AUTOLOAD:=$(call AutoLoad,60,pwm-fan) + $(call AddDepends/hwmon,) + DEPENDS+=@!LINUX_3_14 +endef + +define KernelPackage/hwmon-pwmfan/description + Kernel module for PWM controlled FANs +endef + +$(eval $(call KernelPackage,hwmon-pwmfan)) + + +define KernelPackage/hwmon-k10temp + TITLE:=AMD Family 10h+ temperature sensor + KCONFIG:=CONFIG_SENSORS_K10TEMP + FILES:=$(LINUX_DIR)/drivers/hwmon/k10temp.ko + AUTOLOAD:=$(call AutoLoad,60,k10temp) + $(call AddDepends/hwmon,@PCI_SUPPORT @(x86||x86_64)) +endef + +define KernelPackage/hwmon-k10temp/description + Thermal sensor support for AMD 10h, 11h, 12h (Llano), 14h (Brazos), + 15h (Bulldozer/Trinity/Kaveri) and 16h (Kabini/Mullins) CPUs +endef + +$(eval $(call KernelPackage,hwmon-k10temp))