aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tmn505@gmail.com>2021-05-24 14:41:14 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2021-06-06 00:26:13 +0200
commite9c9b5ec72e4ec8add23515a76bd5de5e7cac2a1 (patch)
treef75bdd0d35cf0cb909d6269015e0a2d1b9d29a19 /package/kernel/linux/modules
parentdb014428b153215a2bdffc80ea44a3a03a1e18cd (diff)
downloadupstream-e9c9b5ec72e4ec8add23515a76bd5de5e7cac2a1.tar.gz
upstream-e9c9b5ec72e4ec8add23515a76bd5de5e7cac2a1.tar.bz2
upstream-e9c9b5ec72e4ec8add23515a76bd5de5e7cac2a1.zip
kernel: package Synopsys Designware PCI to I2C controller
This is present on Roqos Core RC10 and needed to control LED matrix. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Diffstat (limited to 'package/kernel/linux/modules')
-rw-r--r--package/kernel/linux/modules/i2c.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/i2c.mk b/package/kernel/linux/modules/i2c.mk
index ca6463c81b..f429763227 100644
--- a/package/kernel/linux/modules/i2c.mk
+++ b/package/kernel/linux/modules/i2c.mk
@@ -84,6 +84,35 @@ endef
$(eval $(call KernelPackage,i2c-algo-pcf))
+I2C_DWCORE_MODULES:= \
+ CONFIG_I2C_DESIGNWARE_CORE:drivers/i2c/busses/i2c-designware-core
+
+define KernelPackage/i2c-designware-core
+ $(call i2c_defaults,$(I2C_DWCORE_MODULES),58)
+ TITLE:=Synopsys DesignWare I2C core
+ DEPENDS:=+kmod-i2c-core +!LINUX_5_4:kmod-regmap-core
+ HIDDEN:=y
+endef
+
+$(eval $(call KernelPackage,i2c-designware-core))
+
+
+I2C_DWPCI_MODULES:= \
+ CONFIG_I2C_DESIGNWARE_PCI:drivers/i2c/busses/i2c-designware-pci
+
+define KernelPackage/i2c-designware-pci
+ $(call i2c_defaults,$(I2C_DWPCI_MODULES),59)
+ TITLE:=Synopsys DesignWare PCI
+ DEPENDS:=+kmod-i2c-designware-core
+endef
+
+define KernelPackage/i2c-designware-pci/description
+ Support for Synopsys DesignWare I2C controller. Only master mode is supported.
+endef
+
+$(eval $(call KernelPackage,i2c-designware-pci))
+
+
I2C_GPIO_MODULES:= \
CONFIG_I2C_GPIO:drivers/i2c/busses/i2c-gpio