From: Stijn Tintel Date: Thu, 6 Dec 2018 19:28:46 +0000 (+0200) Subject: brcm2708: add kmod-hwmon-rpi-poe-fan X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a51db537920eb1c66a2cdcb7bdba629f80531e3b;p=openwrt%2Fstaging%2Fstintel.git brcm2708: add kmod-hwmon-rpi-poe-fan Add kernel module for the fan on the PoE HAT for the 3B+ model in kernel 4.14. Without this, the fan will not turn on. Signed-off-by: Stijn Tintel --- diff --git a/target/linux/brcm2708/modules.mk b/target/linux/brcm2708/modules.mk index e7292970d6..66aa7341c2 100644 --- a/target/linux/brcm2708/modules.mk +++ b/target/linux/brcm2708/modules.mk @@ -28,6 +28,23 @@ endef $(eval $(call KernelPackage,drm-vc4)) + +define KernelPackage/hwmon-rpi-poe-fan + SUBMENU:=$(HWMON_MENU) + TITLE:=Raspberry Pi PoE HAT fan + DEPENDS:=@TARGET_brcm2708 @LINUX_4_14 +kmod-hwmon-core + KCONFIG:=CONFIG_SENSORS_RPI_POE_FAN + FILES:=$(LINUX_DIR)/drivers/hwmon/rpi-poe-fan.ko + AUTOLOAD:=$(call AutoProbe,rpi-poe-fan) +endef + +define KernelPackage/hwmon-rpi-poe-fan/description + Raspberry Pi PoE HAT fan driver +endef + +$(eval $(call KernelPackage,hwmon-rpi-poe-fan)) + + define KernelPackage/sound-arm-bcm2835 TITLE:=BCM2835 ALSA driver KCONFIG:= \