openwrt-pf/target/linux/airoha/modules.mk
Robert Marko 9dccdd708d airoha: an7581/7583: build-in I2C support
There is no reason to add a custom kmod which is not even an7581
specific as its just the regular Mediatek MT7621 I2C driver.

So, simply enable the driver in kernel configs, drop the inclusion
per-board and remove the kmod definition.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-08-07 13:09:02 +02:00

25 lines
566 B
Makefile

# SPDX-License-Identifier: GPL-2.0-only
OTHER_MENU:=Other modules
define KernelPackage/pwm-airoha
SUBMENU:=$(OTHER_MENU)
TITLE:=Airoha AN7581 and AN7583 PWM
DEPENDS:=@TARGET_airoha_an7581||TARGET_airoha_an7583
KCONFIG:= \
CONFIG_PWM=y \
CONFIG_PWM_AIROHA=y \
CONFIG_PWM_SYSFS=y
FILES:= \
$(LINUX_DIR)/drivers/pwm/pwm-airoha.ko
AUTOLOAD:=$(call AutoProbe,pwm-airoha)
endef
define KernelPackage/pwm-airoha/description
Kernel module to use the PWM channel on Airoha SoC
endef
$(eval $(call KernelPackage,pwm-airoha))