kernel: add kmod-i2c-mux-reg support
authorChristian Svensson <blue@cmd.nu>
Sun, 2 Jul 2023 22:03:18 +0000 (00:03 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 4 Jul 2023 21:00:11 +0000 (23:00 +0200)
Add package for register-based I2C bus mux/switching devices.

Signed-off-by: Christian Svensson <blue@cmd.nu>
package/kernel/linux/modules/i2c.mk

index 1c65a26edceaf3472e787964377a1ac25b9ff7a7..7cd69dbb95a43cad710d1436a08b90ddf6440f62 100644 (file)
@@ -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