From a51db537920eb1c66a2cdcb7bdba629f80531e3b Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Thu, 6 Dec 2018 21:28:46 +0200 Subject: [PATCH] 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 --- target/linux/brcm2708/modules.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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:= \ -- 2.30.2