From patchwork Thu Jun 7 06:09:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Birje X-Patchwork-Id: 163482 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 C19DCB6FA8 for ; Thu, 7 Jun 2012 16:07:10 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2475F281AD; Thu, 7 Jun 2012 08:06:54 +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 liJb9Qmh6aqM; Thu, 7 Jun 2012 08:06:53 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6155D28181; Thu, 7 Jun 2012 08:06:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AEDCB28133 for ; Thu, 7 Jun 2012 08:06:33 +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 RGr9yo46zpEy for ; Thu, 7 Jun 2012 08:06: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 mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by theia.denx.de (Postfix) with ESMTP id 7D30A28183 for ; Thu, 7 Jun 2012 08:06:20 +0200 (CEST) Received: from epcpsbgm2.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M58001D5GX5J8R0@mailout1.samsung.com> for u-boot@lists.denx.de; Thu, 07 Jun 2012 15:06:03 +0900 (KST) X-AuditID: cbfee61b-b7fcc6d000003a7a-44-4fd044cac4c4 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F8.A5.14970.AC440DF4; Thu, 07 Jun 2012 15:06:03 +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 <0M5800J8XGX3ZV30@mmp1.samsung.com> for u-boot@lists.denx.de; Thu, 07 Jun 2012 15:06:02 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Date: Thu, 07 Jun 2012 11:39:51 +0530 Message-id: <1339049394-4816-6-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1339049394-4816-1-git-send-email-rajeshwari.s@samsung.com> References: <1339049394-4816-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jAd3TLhf8Df4dZ7V4u7eT3YHR4+yd HYwBjFFcNimpOZllqUX6dglcGT9PyBQ0sFWcPPeXvYHxD0sXIweHhICJxLwG5i5GTiBTTOLC vfVsXYxcHEICixglGrfOZoRwVjFJnFt0lAWkik3ASGLryWmMILaIgITEr/6rYDazQCOjxI7V riC2sECsRPeFdWBxFgFViQ8nvrOB2LwC7hJrJy6A2qYgcWzqV1YQm1PAQ2LLt5Ng9UJANR/f bWadwMi7gJFhFaNoakFyQXFSeq6RXnFibnFpXrpecn7uJkawx59J72Bc1WBxiFGAg1GJh3eh 8wV/IdbEsuLK3EOMEhzMSiK8AmXn/YV4UxIrq1KL8uOLSnNSiw8xSnOwKInzNlkDVQukJ5ak ZqemFqQWwWSZODilGhjnPfpzsE6c8TeX9OrAVFGRqZJzbyg75d6sitJYk/eziLOn8ndjt7/P pqsVG1X/ujazXnm0in2Z9pVJR0wj5yqarshapGzLIHX1T/3nrafF+guCpsQ9UtsQVDhdcIGw xtdG6arH7CbZry95yX2OX82kWX+kKm/LnOS1dStf2EZ8mHbPsGVJWZkSS3FGoqEWc1FxIgAR 5YGJ9AEAAA== X-TM-AS-MML: No Cc: patches@linaro.org, alim.akhtar@samsung.com, hs@denx.de Subject: [U-Boot] [PATCH 5/8 V2] 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 --- 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 */