[PATCH v3 6/8] kernel: package bcm53xx i2c module

Christian Lamparter chunkeey at gmail.com
Sat Sep 12 17:15:32 EDT 2020


The BCM5301x SoCs do have i2c. Since this is only
being used by the Meraki MR32, this will be packaged
as a module.

Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
---
 package/kernel/linux/modules/i2c.mk | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/package/kernel/linux/modules/i2c.mk b/package/kernel/linux/modules/i2c.mk
index ca6463c81b..1c8b1b844e 100644
--- a/package/kernel/linux/modules/i2c.mk
+++ b/package/kernel/linux/modules/i2c.mk
@@ -259,3 +259,17 @@ endef
 $(eval $(call KernelPackage,i2c-tiny-usb))
 
 
+I2C_BCM_IPROC_MODULES:= \
+  CONFIG_I2C_BCM_IPROC:drivers/i2c/busses/i2c-bcm-iproc
+
+define KernelPackage/i2c-bcm-iproc
+  $(call i2c_defaults,$(I2C_BCM_IPROC_MODULES),59)
+  TITLE:=Broadcom iProc I2C controller
+  DEPENDS:=@TARGET_bcm53xx +kmod-i2c-core
+endef
+
+define KernelPackage/i2c-bcm-iproc/description
+ Kernel module for the Broadcom iProc I2C controller.
+endef
+
+$(eval $(call KernelPackage,i2c-bcm-iproc))
-- 
2.28.0




More information about the openwrt-devel mailing list