From patchwork Mon Oct 22 07:21:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Wilczek X-Patchwork-Id: 193100 X-Patchwork-Delegate: hs@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 5D3572C007A for ; Mon, 22 Oct 2012 18:23:32 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 92A3A4A289; Mon, 22 Oct 2012 09:23:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qCCPfQiesxI1; Mon, 22 Oct 2012 09:23:16 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 404AE4A28B; Mon, 22 Oct 2012 09:22:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 06DD24A257 for ; Mon, 22 Oct 2012 09:22:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C31M8N9Nqep7 for ; Mon, 22 Oct 2012 09:22:34 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by theia.denx.de (Postfix) with ESMTP id 773854A260 for ; Mon, 22 Oct 2012 09:22:16 +0200 (CEST) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MCA003429SKRBD0@mailout4.samsung.com> for u-boot@lists.denx.de; Mon, 22 Oct 2012 16:22:15 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-22-5084f427e36f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 28.FF.01231.724F4805; Mon, 22 Oct 2012 16:22:15 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MCA00HMC9RY8W20@mmp1.samsung.com> for u-boot@lists.denx.de; Mon, 22 Oct 2012 16:22:15 +0900 (KST) From: Piotr Wilczek To: u-boot@lists.denx.de Date: Mon, 22 Oct 2012 09:21:22 +0200 Message-id: <1350890483-26579-9-git-send-email-p.wilczek@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1350890483-26579-1-git-send-email-p.wilczek@samsung.com> References: <1350890483-26579-1-git-send-email-p.wilczek@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCJMWRmVeSWpSXmKPExsVy+t9jAV31Ly0BBn27jCze7u1kd2D0OHtn B2MAYxSXTUpqTmZZapG+XQJXRsfTY2wF2zkqrl8+xtjA+Iyti5GTQ0LARGLRsUZWCFtM4sK9 9UBxLg4hgUWMEp1L2pkhnMVMEmcnNDCBVLEJaEssf/OGEcQWEZCQ+NV/lRGkiFngBKPEw/7V LCAJYQEXiZnf/4PZLAKqEut2bgZbwSvgKvH37BlGiHXyEk/v94GdwSngJnFqzyuwGiGgmotX b7NNYORdwMiwilE0tSC5oDgpPddQrzgxt7g0L10vOT93EyPY78+kdjCubLA4xCjAwajEw1tx oSVAiDWxrLgy9xCjBAezkgjvqXigEG9KYmVValF+fFFpTmrxIUZpDhYlcd5mj5QAIYH0xJLU 7NTUgtQimCwTB6dUA+OE7M2HaxsDG4uO8rGclktfP+eFj6P8z4NKmdecXpWeWln9mU/p5/yJ O1NOPOj6bhtx9Nn+wwo/WjZWvboyiaEkwPnG+Q/brjeoPbY9/Hdxs91+Li6z/1IrpmtfZby0 hXX9TUf3NbeXbUx5lefCd2v7sY2eiuZN/11yzybt41g4z2nNP5fbx7pblViKMxINtZiLihMB SZ9GufcBAAA= Cc: Piotr Wilczek , Kyungmin Park , Gwuieon Jin Subject: [U-Boot] [PATCH v2 8/9] drivers:i2c: modify I2C header for Multi-I2C X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This patch modifies i2c.h header to support Multi-I2C. Signed-off-by: Piotr Wilczek Signed-off-by: Kyungmin Park CC: Minkyu Kang --- Changes in v2: - new patch include/i2c.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/i2c.h b/include/i2c.h index 16f099d..cc07058 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -30,6 +30,13 @@ #define _I2C_H_ /* + * Multi_I2C header file. + */ +#if defined(CONFIG_MULTI_I2C) +#include +#endif + +/* * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING * * The implementation MUST NOT use static or global variables if the @@ -234,6 +241,10 @@ int i2c_set_bus_speed(unsigned int); * Returns speed of currently active I2C bus in Hz */ +#if defined(CONFIG_MULTI_I2C) +void i2c_reset(void); +#endif + unsigned int i2c_get_bus_speed(void); /* NOTE: These two functions MUST be always_inline to avoid code growth! */