hwmon.mk 937 B

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