From patchwork Sat Dec 6 22:32:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heimpold X-Patchwork-Id: 418421 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 657D51400E7 for ; Sun, 7 Dec 2014 09:35:16 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 8EB3A28C160; Sat, 6 Dec 2014 23:32:17 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 76A5D28748E for ; Sat, 6 Dec 2014 23:31:31 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .heimpold. - helo: .mo4-p00-ob.smtp.rzone. - helo-domain: .rzone.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.163]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 6 Dec 2014 23:31:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1417905192; l=1407; s=domk; d=heimpold.de; h=Date:Subject:Cc:To:From; bh=8W/cHrq2wkJb/p+/fq1zb+Zu2/w=; b=aWw6nDP9aQsbSh6KWwzazo8TdwtRtMwNTgYk96jbaJrkEbdGG54b8b4gEuzO9yidSkQ g/XEEhzdDSGC+UJXGUznfhrGTl7ZX3MNUMWeE1LN7EUw6cGtk304O4e8qPY/BuVRkK/ab Pw7FPGnb3Y9FEnFmTO3gPVfATRrnHDNl710= X-RZG-AUTH: :O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNys2z+NfqLSUoNNCTudAGGnyHtjxQd77aq3bA2w== X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr (dslb-178-012-069-235.178.012.pools.vodafone-ip.de [178.12.69.235]) by post.strato.de (RZmta 36.2 DYNA|AUTH) with ESMTPA id c02ed4qB6MXABsn; Sat, 6 Dec 2014 23:33:10 +0100 (CET) Received: from kerker.fritz.box (kerker [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id A7D3D127278; Sat, 6 Dec 2014 23:33:10 +0100 (CET) From: Michael Heimpold To: wigyori@uid0.hu Date: Sat, 6 Dec 2014 23:32:48 +0100 Message-Id: <1417905173-31494-4-git-send-email-mhei@heimpold.de> X-Mailer: git-send-email 1.7.10.4 Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH v2] mxs: add kernel module for i2c interface X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Michael Heimpold --- 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))