From patchwork Tue Jun 19 07:30:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Birje X-Patchwork-Id: 165685 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 C0A1DB700F for ; Tue, 19 Jun 2012 17:27:21 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3AE27280E0; Tue, 19 Jun 2012 09:27:00 +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 0ICsS3zu87js; Tue, 19 Jun 2012 09:26:59 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DC1F128115; Tue, 19 Jun 2012 09:26:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8D36F280D5 for ; Tue, 19 Jun 2012 09:26:35 +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 CvpF+VDb2SHL for ; Tue, 19 Jun 2012 09:26:33 +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 mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by theia.denx.de (Postfix) with ESMTP id 2C4CB280DA for ; Tue, 19 Jun 2012 09:26:11 +0200 (CEST) Received: from epcpsbgm2.samsung.com (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M5U00JM4SNCI250@mailout2.samsung.com> for u-boot@lists.denx.de; Tue, 19 Jun 2012 16:26:08 +0900 (KST) X-AuditID: cbfee61b-b7fcc6d000003a7a-88-4fe0299043db Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4F.8E.14970.09920EF4; Tue, 19 Jun 2012 16:26:08 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M5U00EHGSMYFC70@mmp1.samsung.com> for u-boot@lists.denx.de; Tue, 19 Jun 2012 16:26:08 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Date: Tue, 19 Jun 2012 13:00:29 +0530 Message-id: <1340091032-26560-6-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1340091032-26560-1-git-send-email-rajeshwari.s@samsung.com> References: <1340091032-26560-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJMWRmVeSWpSXmKPExsVy+t9jAd0Jmg/8DS5uV7R4u7eT3YHR4+yd HYwBjFFcNimpOZllqUX6dglcGW2bjzIWPGCrOHNmC3MD43rWLkZODgkBE4n+qVPYIWwxiQv3 1rN1MXJxCAksYpS48+gJE4SzikmiY9IjsCo2ASOJrSenMYLYIgISEr/6r4LZzAJTGCV2rQ4F sYUFYiUON3SzgdgsAqoSSz7cZe5i5ODgFfCQ2L7JD2KZgsSxqV/BjuAU8JSYtH8+E4gtBFRy /8s5pgmMvAsYGVYxiqYWJBcUJ6XnGukVJ+YWl+al6yXn525iBPv8mfQOxlUNFocYBTgYlXh4 MyQe+AuxJpYVV+YeYpTgYFYS4V31/76/EG9KYmVValF+fFFpTmrxIUZpDhYlcd4m6wv+QgLp iSWp2ampBalFMFkmDk6pBsYFMYlJgqHhW7jEnOd0+TPP3XgpQVfTLUvO4f2auKNyYdvzO0rX KgYt3PpA026/4UEVG6t0r7ant1gEk5o3K0/Ss/a8Kno13zD34U+Gq9drTI74S/1Z1828k/fV 8w+HJpvucH4QElleq6GbyHorcknG3MlPWjtZt84/vu97QvauNknbtA8Sj5RYijMSDbWYi4oT AdD2Nmn1AQAA X-TM-AS-MML: No Cc: patches@linaro.org, alim.akhtar@samsung.com, hs@denx.de Subject: [U-Boot] [PATCH 5/8 V4] I2C: S3C24X0: Add offset to calculate next i2c channel base address 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 As exynos has more than one i2c channels. This patch adds offset padding for struct s3c24x0_i2c, in order to get the new base address of next i2c channel. Signed-off-by: Alim Akhtar Signed-off-by: Rajeshwari Shinde Acked-by: Simon Glass --- Changes in V2: - None Changes in V3: - None Changes in V4: - None drivers/i2c/s3c24x0_i2c.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/s3c24x0_i2c.h b/drivers/i2c/s3c24x0_i2c.h index 2dd4b06..d357a0a 100644 --- a/drivers/i2c/s3c24x0_i2c.h +++ b/drivers/i2c/s3c24x0_i2c.h @@ -29,5 +29,8 @@ struct s3c24x0_i2c { u32 iicadd; u32 iicds; u32 iiclc; +#ifdef CONFIG_EXYNOS5 + uchar res1[0xffec]; +#endif }; #endif /* _S3C24X0_I2C_H */