brcm2708: rename target to bcm27xx
[openwrt/openwrt.git] / target / linux / bcm27xx / modules / hwmon.mk
1 #
2 # Copyright (C) 2019 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
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_bcm27xx)
14 endef
15
16 define KernelPackage/hwmon-raspberrypi/description
17 Kernel module for voltage sensor on the Raspberry Pi
18 endef
19
20 $(eval $(call KernelPackage,hwmon-raspberrypi))
21
22
23 define KernelPackage/hwmon-rpi-poe-fan
24 SUBMENU:=$(HWMON_MENU)
25 TITLE:=Raspberry Pi PoE HAT fan
26 DEPENDS:=@TARGET_bcm27xx +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)
30 endef
31
32 define KernelPackage/hwmon-rpi-poe-fan/description
33 Raspberry Pi PoE HAT fan driver
34 endef
35
36 $(eval $(call KernelPackage,hwmon-rpi-poe-fan))