From patchwork Fri May 18 12:12:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 8812 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 A739923E49 for ; Fri, 18 May 2012 12:15:05 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 7462CA181F3 for ; Fri, 18 May 2012 12:15:05 +0000 (UTC) Received: by yhpp61 with SMTP id p61so3311130yhp.11 for ; Fri, 18 May 2012 05:15:05 -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=5DeMJNG9yEvTHGXYcn+sgbKB7mx0odSG0UN5j+qnylo=; b=SBPltTaI8eSKMbutqgayJnGp11FPk72hHFV0y8sYkpRArkwVzO1vuZyCs0ERNhOQh5 3woJfvKbhOgt+hjeNhKyuTXYy6Ra5jOEl9CR1GZ217yl5WEDuuYYWR3G3eWmd6F8Z+jC hR1XDCG+oc/k9fuWleJpmbkrUQ9bpADACy7vU9m31AaCpvqTWOsxs6sxTh9f2vmN/0bZ nfnVuGpSYBkPUjBG/vw8gAosKoW2Jmb3t8e9bcJLJUW2hDqY7RB72Co8BDMsI6qBIjjO TjHhqPIApMTvh6RzUFEgIR1IBLQAPCT5GmLFU657kWLT3aSnS3oOEsojyyySerbVcLGM bXRg== Received: by 10.50.87.227 with SMTP id bb3mr242890igb.57.1337343304900; Fri, 18 May 2012 05:15:04 -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.35.72 with SMTP id o8csp100249ibd; Fri, 18 May 2012 05:15:04 -0700 (PDT) Received: by 10.68.195.168 with SMTP id if8mr21032923pbc.164.1337343304235; Fri, 18 May 2012 05:15:04 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id rm6si7809088pbc.185.2012.05.18.05.15.03; Fri, 18 May 2012 05:15:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M4700FB1WOMFH30@mailout4.samsung.com>; Fri, 18 May 2012 21:15:03 +0900 (KST) X-AuditID: cbfee61a-b7be0ae000001293-07-4fb63d479038 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (MMPCPMTA) with SMTP id FB.DD.04755.74D36BF4; Fri, 18 May 2012 21:15:03 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M470045KWF74W10@mmp2.samsung.com>; Fri, 18 May 2012 21:15:03 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, clchiou@chromium.org, waihong@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org, dianders@chromium.org, plagnioj@jcrosoft.com Subject: [PATCH 5/8] I2C: S3C24X0: Add offset to calculate next i2c channel base address Date: Fri, 18 May 2012 17:42:30 +0530 Message-id: <1337343153-3019-6-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1337343153-3019-1-git-send-email-rajeshwari.s@samsung.com> References: <1337343153-3019-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: AAAAAA== X-TM-AS-MML: No X-Gm-Message-State: ALoCoQmYrhkjUyJog4LqhEGlJtfM7cvsS0IOsHS4aG21iGnBU7mLjMDL+QO7ggAJhASS3mn5LWBm 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 */