openwrt/target/linux/realtek/modules.mk
Bevan Weiss 018ba6e5b8 kernel: mfd: Add Hasivo STC8 mfd
This STC8 microcontroller is used on a range of Hasivo managed switches.
It typically performs some fan/thermal control, and also has some
discrete IO hanging off of it.
The fan/thermal control is still somewhat unknown at this stage, but the
LED / gpio control has been determined as being two I2C registers which
need to be written to with a 'typical' Hasivo 0x40 execute mask set, to
change values.

Rather than having this expose the LED functionality / thermal control
directly, just represent it as an mfd, with some configurable OR'ing of
an execute-bit to certain registers (execute-bit-regs).  This way different
STC8 arrangements can hopefully be handled by devicetree configs rather
than needing new driver code.

Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21578
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-01 18:47:27 +01:00

23 lines
654 B
Makefile

#
# Copyright (C) 2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
MFD_MENU:=MultiFunction Device (MFD) Support
define KernelPackage/mfd-hasivo-stc8
SUBMENU:=$(MFD_MENU)
TITLE:=Hasivo STC8 microcontroller support
KCONFIG:=CONFIG_MFD_HASIVO_STC8
FILES:=$(LINUX_DIR)/drivers/mfd/hasivo-stc8-mfd.ko
DEPENDS:=@TARGET_realtek +kmod-mfd +kmod-regmap-i2c
AUTOLOAD:=$(call AutoProbe,hasivo-stc8-mfd)
endef
define KernelPackage/mfd-hasivo-stc8/description
Kernel module for Hasivo STC8 microcontroller support
endef
$(eval $(call KernelPackage,mfd-hasivo-stc8))