1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/airoha/modules.mk
Kenneth Kasilag 7d2c244646 airoha: rename kmod-pwm-an7581 to kmod-pwm-airoha
Certain targets for an7581 and an7583 referred to kmod-pwm-airoha;
however in the target modules makefile the module is referred to
as kmod-pwm-an7581, causing buildbot to fail.

Change the name of kmod-pwm-an7581 to kmod-pwm-airoha to resolve this.

Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
Link: https://github.com/openwrt/openwrt/pull/22445
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-16 17:42:17 +01:00

42 lines
981 B
Makefile

# SPDX-License-Identifier: GPL-2.0-only
OTHER_MENU:=Other modules
I2C_MT7621_MODULES:= \
CONFIG_I2C_MT7621:drivers/i2c/busses/i2c-mt7621
define KernelPackage/i2c-an7581
SUBMENU:=$(OTHER_MENU)
$(call i2c_defaults,$(I2C_MT7621_MODULES),79)
TITLE:=Airoha I2C Controller
DEPENDS:=+kmod-i2c-core \
@(TARGET_airoha_an7581)
endef
define KernelPackage/i2c-an7581/description
Kernel modules for enable mt7621 i2c controller.
endef
$(eval $(call KernelPackage,i2c-an7581))
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))