2021-02-10 13:52:34 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2019-07-09 18:32:28 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2019 OpenWrt.org
|
|
|
|
|
|
|
|
define KernelPackage/hwmon-raspberrypi
|
|
|
|
TITLE:=Raspberry Pi voltage monitor
|
|
|
|
KCONFIG:=CONFIG_SENSORS_RASPBERRYPI_HWMON
|
|
|
|
FILES:=$(LINUX_DIR)/drivers/hwmon/raspberrypi-hwmon.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,60,raspberrypi-hwmon)
|
2020-02-08 20:58:55 +00:00
|
|
|
$(call AddDepends/hwmon,@TARGET_bcm27xx)
|
2019-07-09 18:32:28 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/hwmon-raspberrypi/description
|
|
|
|
Kernel module for voltage sensor on the Raspberry Pi
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,hwmon-raspberrypi))
|
|
|
|
|
|
|
|
|
|
|
|
define KernelPackage/hwmon-rpi-poe-fan
|
|
|
|
SUBMENU:=$(HWMON_MENU)
|
|
|
|
TITLE:=Raspberry Pi PoE HAT fan
|
2020-02-08 20:58:55 +00:00
|
|
|
DEPENDS:=@TARGET_bcm27xx +kmod-hwmon-core
|
2019-07-09 18:32:28 +00:00
|
|
|
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))
|