316f0b84198b806fe51afc0b04de565787003f7a
[openwrt/openwrt.git] / target / linux / bcm27xx / modules / hwmon.mk
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2019 OpenWrt.org
4
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)
11 endef
12
13 define KernelPackage/hwmon-raspberrypi/description
14 Kernel module for voltage sensor on the Raspberry Pi
15 endef
16
17 $(eval $(call KernelPackage,hwmon-raspberrypi))
18
19
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)
27 endef
28
29 define KernelPackage/hwmon-rpi-poe-fan/description
30 Raspberry Pi PoE HAT fan driver
31 endef
32
33 $(eval $(call KernelPackage,hwmon-rpi-poe-fan))