2 # Copyright (C) 2019 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 define KernelPackage
/hwmon-raspberrypi
9 TITLE
:=Raspberry Pi voltage monitor
10 KCONFIG
:=CONFIG_SENSORS_RASPBERRYPI_HWMON
11 FILES
:=$(LINUX_DIR
)/drivers
/hwmon
/raspberrypi-hwmon.ko
12 AUTOLOAD
:=$(call AutoLoad
,60,raspberrypi-hwmon
)
13 $(call AddDepends
/hwmon
,@TARGET_brcm2708
)
16 define KernelPackage
/hwmon-raspberrypi
/description
17 Kernel module for voltage sensor on the Raspberry Pi
20 $(eval
$(call KernelPackage
,hwmon-raspberrypi
))
23 define KernelPackage
/hwmon-rpi-poe-fan
24 SUBMENU
:=$(HWMON_MENU
)
25 TITLE
:=Raspberry Pi PoE HAT fan
26 DEPENDS
:=@TARGET_brcm2708
+kmod-hwmon-core
27 KCONFIG
:=CONFIG_SENSORS_RPI_POE_FAN
28 FILES
:=$(LINUX_DIR
)/drivers
/hwmon
/rpi-poe-fan.ko
29 AUTOLOAD
:=$(call AutoProbe
,rpi-poe-fan
)
32 define KernelPackage
/hwmon-rpi-poe-fan
/description
33 Raspberry Pi PoE HAT fan driver
36 $(eval
$(call KernelPackage
,hwmon-rpi-poe-fan
))