[OpenWrt-Devel] [PATCH v2] mxs: add kernel module for i2c interface
Michael Heimpold
mhei at heimpold.de
Sat Dec 6 17:32:48 EST 2014
Signed-off-by: Michael Heimpold <mhei at heimpold.de>
---
Changelog:
- v2:
- disable option in kernel config
- v1:
- initial version
target/linux/mxs/config-3.14 | 2 +-
target/linux/mxs/modules.mk | 15 +++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/target/linux/mxs/config-3.14 b/target/linux/mxs/config-3.14
index bded413..4c089b4 100644
--- a/target/linux/mxs/config-3.14
+++ b/target/linux/mxs/config-3.14
@@ -165,7 +165,7 @@ CONFIG_I2C_MUX=y
# CONFIG_I2C_MUX_PCA9541 is not set
# CONFIG_I2C_MUX_PCA954x is not set
CONFIG_I2C_MUX_PINCTRL=y
-CONFIG_I2C_MXS=y
+# CONFIG_I2C_MXS is not set
CONFIG_IIO=y
CONFIG_IIO_BUFFER=y
CONFIG_IIO_KFIFO_BUF=y
diff --git a/target/linux/mxs/modules.mk b/target/linux/mxs/modules.mk
index eba06c1..84553a3 100644
--- a/target/linux/mxs/modules.mk
+++ b/target/linux/mxs/modules.mk
@@ -116,3 +116,18 @@ define KernelPackage/spi-mxs/description
endef
$(eval $(call KernelPackage,spi-mxs))
+
+I2C_MXS_MODULES:= \
+ CONFIG_I2C_MXS:drivers/i2c/busses/i2c-mxs
+
+define KernelPackage/i2c-mxs
+ $(call i2c_defaults,$(I2C_MXS_MODULES),55)
+ TITLE:=Freescale i.MX23/28 I2C driver
+ DEPENDS:=@TARGET_mxs +kmod-i2c-core
+endef
+
+define KernelPackage/i2c-mxs/description
+ Kernel module for Freescale i.MX23/28 I2C controller
+endef
+
+$(eval $(call KernelPackage,i2c-mxs))
--
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list