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 Shinde X-Patchwork-Id: 9440 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 4DDDC23F19 for ; Tue, 19 Jun 2012 07:26:11 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1E363A1815C for ; Tue, 19 Jun 2012 07:26:11 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so4873497yen.11 for ; Tue, 19 Jun 2012 00:26:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:x-tm-as-mml:x-gm-message-state; bh=ETmt1Y5WUODOw1MBS5BOF1fMdmP5LSZQK1aQt7SXSXY=; b=iOlnNZNWetSRA+7GInQUa34Mybb4q5ezJEZx+evpRzUbkg31PD3Ub4q+hs8hlCvtXI ouAmOYr2o4j9HYZoCOLV0p+OjH0LouQ4mX2hUUeCB7ljHUirphWB0XRWKJBdKljxM2K0 YXZhYBBATT8/N2oPQS/PqxWQIAfskm3hNzsoEyXNqznn7xlZcQ//QNwINqwNazPeZUkW FkKu24lZ4IeUR+KD0dOqYlmSUJkUmdV4qYKfgeKOUzC3IwNtFOlOH2ZgHolgwMXmfp7k 8DYaJJkkjWmV5OffgNZCTCtqlfjmJn2FGQXyO+Apnsdx6vvYHssn0QbJX0FR58dXVHl8 OFbw== Received: by 10.50.163.99 with SMTP id yh3mr183811igb.53.1340090770690; Tue, 19 Jun 2012 00:26:10 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp110434ibb; Tue, 19 Jun 2012 00:26:09 -0700 (PDT) Received: by 10.68.234.104 with SMTP id ud8mr60390166pbc.163.1340090769811; Tue, 19 Jun 2012 00:26:09 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id vr5si31460439pbc.223.2012.06.19.00.26.09; Tue, 19 Jun 2012 00:26:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (mailout3.samsung.com [203.254.224.33]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M5U00B2ZSMRA380@mailout3.samsung.com>; Tue, 19 Jun 2012 16:26:08 +0900 (KST) X-AuditID: cbfee61a-b7f9f6d0000016a8-4b-4fe029906a9e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 3C.D2.05800.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>; Tue, 19 Jun 2012 16:26:08 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, alim.akhtar@samsung.com, sjg@chromium.org, hs@denx.de, mk7.kang@samsung.com, chander.kashyap@linaro.org, dofmind@gmail.com Subject: [PATCH 5/8 V4] I2C: S3C24X0: Add offset to calculate next i2c channel base address 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+NgFnrOJMWRmVeSWpSXmKPExsVy+t9jAd0Jmg/8DdYvVrB4uP4mi8WUw19Y HJg87lzbwxbAGMVlk5Kak1mWWqRvl8CV0bb5KGPBA7aKM2e2MDcwrmftYuTkkBAwkbjavQrK FpO4cG89WxcjF4eQwCJGiWOfdjNDOBOZJN7v+84IUsUmYCSx9eQ0MFtEQELiV/9VMJtZYAqj xK7VoSC2sECsxOGGbjYQm0VAVWLJh7tAgzg4eAU8JLZv8oNYpiBxbOpXsMWcAp4Sk/bPZwKx hYBK7n85xzSBkXcBI8MqRtHUguSC4qT0XEO94sTc4tK8dL3k/NxNjGDvP5PawbiyweIQowAH oxIP70G5B/5CrIllxZW5hxglOJiVRHhX/b/vL8SbklhZlVqUH19UmpNafIhRmoNFSZy3yfqC v5BAemJJanZqakFqEUyWiYNTqoExPF34lkP72d5V1u+3n41xn/t7+pyCKtfq+LNZJo4btap2 6goJfAqKFf58ct63C8fSQ2bVxR0wD38w54HYtE3iq2IF9jK76V98oMh3L0iHpSKJV4fzVdba +25L5iUeD0rN+9A3T//0zOhz/4/UhzzjZzIuf22+irXWR7hjwjN96RvccwTa9+5UYinOSDTU Yi4qTgQATPgZI/oBAAA= X-TM-AS-MML: No X-Gm-Message-State: ALoCoQl+V0AbVRDhEQr8ExvFobOBjpBe7GK8TnJ4q3IAN/crUaAiF5CKcmyepYDKIfHonVBnKoQp 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 */