1 # SPDX-License-Identifier: GPL-2.0-only
3 # Copyright (C) 2019 OpenWrt.org
5 define KernelPackage
/hwmon-raspberrypi
6 TITLE
:=Raspberry Pi voltage monitor
7 KCONFIG
:=CONFIG_SENSORS_RASPBERRYPI_HWMON
8 FILES
:=$(LINUX_DIR
)/drivers
/hwmon
/raspberrypi-hwmon.ko
9 AUTOLOAD
:=$(call AutoLoad
,60,raspberrypi-hwmon
)
10 $(call AddDepends
/hwmon
,@TARGET_bcm27xx
)
13 define KernelPackage
/hwmon-raspberrypi
/description
14 Kernel module for voltage sensor on the Raspberry Pi
17 $(eval
$(call KernelPackage
,hwmon-raspberrypi
))
20 define KernelPackage
/hwmon-rpi-poe-fan
21 SUBMENU
:=$(HWMON_MENU
)
22 TITLE
:=Raspberry Pi PoE HAT fan
23 DEPENDS
:=@TARGET_bcm27xx
+kmod-hwmon-core
24 KCONFIG
:=CONFIG_SENSORS_RPI_POE_FAN
25 FILES
:=$(LINUX_DIR
)/drivers
/hwmon
/rpi-poe-fan.ko
26 AUTOLOAD
:=$(call AutoProbe
,rpi-poe-fan
)
29 define KernelPackage
/hwmon-rpi-poe-fan
/description
30 Raspberry Pi PoE HAT fan driver
33 $(eval
$(call KernelPackage
,hwmon-rpi-poe-fan
))