[openwrt/openwrt] kernel: add kmod-i2c-mux-reg support
LEDE Commits
lede-commits at lists.infradead.org
Tue Jul 4 14:05:34 PDT 2023
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/10616779f11be835da8e56918f2e0e9de3f0539f
commit 10616779f11be835da8e56918f2e0e9de3f0539f
Author: Christian Svensson <blue at cmd.nu>
AuthorDate: Mon Jul 3 00:03:18 2023 +0200
kernel: add kmod-i2c-mux-reg support
Add package for register-based I2C bus mux/switching devices.
Signed-off-by: Christian Svensson <blue at cmd.nu>
---
package/kernel/linux/modules/i2c.mk | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/package/kernel/linux/modules/i2c.mk b/package/kernel/linux/modules/i2c.mk
index 1c65a26edc..7cd69dbb95 100644
--- a/package/kernel/linux/modules/i2c.mk
+++ b/package/kernel/linux/modules/i2c.mk
@@ -200,6 +200,22 @@ endef
$(eval $(call KernelPackage,i2c-mux-gpio))
+I2C_MUX_REG_MODULES:= \
+ CONFIG_I2C_MUX_REG:drivers/i2c/muxes/i2c-mux-reg
+
+define KernelPackage/i2c-mux-reg
+ $(call i2c_defaults,$(I2C_MUX_REG_MODULES),51)
+ TITLE:=Register-based I2C mux/switches
+ DEPENDS:=+kmod-i2c-mux
+endef
+
+define KernelPackage/i2c-mux-reg/description
+ Kernel modules for register-based I2C bus mux/switching devices
+endef
+
+$(eval $(call KernelPackage,i2c-mux-reg))
+
+
I2C_MUX_PCA9541_MODULES:= \
CONFIG_I2C_MUX_PCA9541:drivers/i2c/muxes/i2c-mux-pca9541
More information about the lede-commits
mailing list