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 Shinde X-Patchwork-Id: 9158 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 96E0F23F0A for ; Thu, 7 Jun 2012 06:06:20 +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 67028A1823C for ; Thu, 7 Jun 2012 06:06:20 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so160232yen.11 for ; Wed, 06 Jun 2012 23:06:20 -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=ozVDDpRQ6PRebMRO7gdlI0+kreaJvPwFjR6FQE9UXWA=; b=nQ580eDS2kWkg2Vb/N/tPVyLtKzynXAJuxCZZTPSZj9Q5gTcRm8yMOMasTQlu9BBvn ubldCziF3GckYHH17+dEukkJyfaqxOqHBGy6hov9XtCig+Dr/27feQ+x5/SORGemk1DA wSLwR7DXWuzaGBTfNb1psC2eUzpkDRtc2hc1MZH0h0PUv1um3ZAvAm9gpg3/Yu9yQ8Ow r3jSWkb1TJ15um0Uy7xMWGa51+JGQvdKcj5KIA/lOdbi6/jtFbVXCna/YeHJp7aCBVzl ndwIO9o12Umlng1Xe07rr1GswbpJcWPHH+PAkjI/0qdx8Rbs1LWxRwAMnFJus6Rs+QWv H9Hg== Received: by 10.42.89.72 with SMTP id f8mr413489icm.33.1339049179922; Wed, 06 Jun 2012 23:06:19 -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 v20csp124544ibb; Wed, 6 Jun 2012 23:06:19 -0700 (PDT) Received: by 10.50.188.131 with SMTP id ga3mr480519igc.54.1339049179039; Wed, 06 Jun 2012 23:06:19 -0700 (PDT) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id rr7si4156176pbc.22.2012.06.06.23.06.18; Wed, 06 Jun 2012 23:06:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.24 as permitted sender) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.24 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.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 <0M58001DVGXUJ8R0@mailout1.samsung.com>; Thu, 07 Jun 2012 15:06:03 +0900 (KST) X-AuditID: cbfee61a-b7f9f6d0000016a8-9c-4fd044caa7f9 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F1.16.05800.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>; Thu, 07 Jun 2012 15:06:02 +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 Subject: [PATCH 5/8 V2] I2C: S3C24X0: Add offset to calculate next i2c channel base address 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+NgFnrOJMWRmVeSWpSXmKPExsVy+t9jAd3TLhf8DbadZLV4uP4mi8WUw19Y HJg87lzbwxbAGMVlk5Kak1mWWqRvl8CV8fOETEEDW8XJc3/ZGxj/sHQxcnJICJhIHG+dwAph i0lcuLeerYuRi0NIYBGjxOWTf1ghnIlMEtM7PzGBVLEJGElsPTmNEcQWEZCQ+NV/FcxmFmhk lNix2hXEFhaIlei+sA4sziKgKvHhxHc2EJtXwF1i7cQFzBDbFCSOTf0KtplTwENiy7eTYPVC QDUf321mncDIu4CRYRWjaGpBckFxUnquoV5xYm5xaV66XnJ+7iZGsPefSe1gXNlgcYhRgINR iYeXw/GCvxBrYllxZe4hRgkOZiURXoGy8/5CvCmJlVWpRfnxRaU5qcWHGKU5WJTEeZusgaoF 0hNLUrNTUwtSi2CyTBycUg2MTpfF7kctun0lxOj1DUMOqeWib34zPOayERSYrrJN+5Fe3Ppl 0z71TPgwwdzvV9Rl2ZRvTUln18utPHbsUPWjoguXdJY4Htm1MraF/bCrqsXkoGL9jfzLG6sl /BKK4/wmyDVE7c5bcO36pTWH6tbVPtbfvOG8eWlu8k5rv+ZlBy5dc4/O4QlUUmIpzkg01GIu Kk4EADvFd3z6AQAA X-TM-AS-MML: No X-Gm-Message-State: ALoCoQm5TqnrrLMM5P005KS3BAp1hLEIewiAysYYw4wLSL9Z3UpaxpS3HvYwlu634xMy39vO8eeG 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 */