From patchwork Tue Jul 24 07:23:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 10217 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 E7B9723E56 for ; Tue, 24 Jul 2012 07:18:16 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 9A635A180D6 for ; Tue, 24 Jul 2012 07:18:16 +0000 (UTC) Received: by ghbz12 with SMTP id z12so6659434ghb.11 for ; Tue, 24 Jul 2012 00:18:16 -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=Y1j77V4uCE63E9kFBSHQIvm1LFZloTAHkqazJV84d/o=; b=KjLywz7Ry97ofmKD+JSjwUbnqyirl9vXVPoz6bplDboIqOwkkw8M+Lkz789VCKpZ3v aVAKjf9TlHqLKeoMzkQSaa9JKI3bM5dyznnjE/r98DYR6vApiqLSvtPFlYWV+kDFF8Ek T7GyP2xNsyQStzi90Rsn0a9+vFOpq42x+M/2TcIJgjxRGUpq7n6goMsqb3CAvbkF0U68 2yLqvwB0WPCwM85PtmIOsl+7A5LPesGnyzOx931gh1WRJFaAkErMq4dhbSjv9tV/0KuH /I52zr8OShY+onPWX4feamW8TEZkJKJe4RYbicnt4hja12wRCAg0a6V5o2d9LKXmjpRh NE8w== Received: by 10.43.95.202 with SMTP id cd10mr12974981icc.21.1343114295783; Tue, 24 Jul 2012 00:18:15 -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.153.7 with SMTP id i7csp67681ibw; Tue, 24 Jul 2012 00:18:15 -0700 (PDT) Received: by 10.66.78.73 with SMTP id z9mr2638215paw.9.1343114294888; Tue, 24 Jul 2012 00:18:14 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id ky6si27044441pbc.48.2012.07.24.00.18.14; Tue, 24 Jul 2012 00:18:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.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 <0M7N006BWLLKO8E0@mailout2.samsung.com>; Tue, 24 Jul 2012 16:18:13 +0900 (KST) X-AuditID: cbfee61a-b7f616d000004b7e-62-500e4c3552b1 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 68.A3.19326.53C4E005; Tue, 24 Jul 2012 16:18:13 +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 <0M7N0070ELLVCSJ1@mmp1.samsung.com>; Tue, 24 Jul 2012 16:18:13 +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, jy0922.shim@samsung.com, jh80.chung@samsung.com Subject: [PATCH 5/8 V7] I2C: Move struct s3c24x0_i2c to a common place. Date: Tue, 24 Jul 2012 12:53:52 +0530 Message-id: <1343114635-28169-6-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1343114635-28169-1-git-send-email-rajeshwari.s@samsung.com> References: <1343114635-28169-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBJMWRmVeSWpSXmKPExsVy+t9jAV1TH74Agz07dSwerr/JYjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBl/P58mrGgS6Ti2KKdrA2MH/m7GDk5JARMJP6ePcMO YYtJXLi3nq2LkYtDSGARo8TW7SuZIZyJTBILLz5jAqliEzCS2HpyGiOILSIgIfGr/yojSBGz wBZGieOvLgK1c3AIC7hLHNmaCFLDIqAq0bVgEiuIzSvgIdF95g0LxDYFiWNTv4LFOQU8JTZe 3wo2Xwio5umdU6wTGHkXMDKsYhRNLUguKE5KzzXUK07MLS7NS9dLzs/dxAj2/zOpHYwrGywO MQpwMCrx8Ga28gYIsSaWFVfmHmKU4GBWEuHl9eALEOJNSaysSi3Kjy8qzUktPsQozcGiJM5r 7P3VX0ggPbEkNTs1tSC1CCbLxMEp1cBYnPtkftSFA2nf5mZM6exyu9642qfUlPlfR67cuaId VxZ/2/UtasOngpb9xiJsfmd7faXMmm3KW9Se/fH63VxcUhd3vUvptu7ht2m+LsLL3WMm/bO4 ebBynb07r5NkxewLmmcEs3hv+/71n/r4/+TI+02On64sfP6IQ7xoat6TmEYz8YlJwvFKLMUZ iYZazEXFiQCervAs+wEAAA== X-TM-AS-MML: No X-Gm-Message-State: ALoCoQnoTfuF7bfZytMxTPypEjvpC0RVYwHnnPryrdBt/6QbBzEORooW7TJmBJWpkT37mT5EuGE3 struct s3c24x0_i2c is being moved to common local header file so that the same can be used by s3c series and exynos series SoCs. Signed-off-by: Alim Akhtar Signed-off-by: Doug Anderson Signed-off-by: Rajeshwari Shinde Acked-by: Simon Glass --- Changes in V2: - None Changes in V3: - None Changes in V4: - None Changes in V5: - None Changes in V6: - None Chnages in V7: - None arch/arm/include/asm/arch-s3c24x0/s3c24x0.h | 10 -------- drivers/i2c/s3c24x0_i2c.h | 33 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 drivers/i2c/s3c24x0_i2c.h diff --git a/arch/arm/include/asm/arch-s3c24x0/s3c24x0.h b/arch/arm/include/asm/arch-s3c24x0/s3c24x0.h index ca978c9..0f75c31 100644 --- a/arch/arm/include/asm/arch-s3c24x0/s3c24x0.h +++ b/arch/arm/include/asm/arch-s3c24x0/s3c24x0.h @@ -343,16 +343,6 @@ struct s3c24x0_watchdog { u32 wtcnt; }; - -/* IIC (see manual chapter 20) */ -struct s3c24x0_i2c { - u32 iiccon; - u32 iicstat; - u32 iicadd; - u32 iicds; -}; - - /* IIS (see manual chapter 21) */ struct s3c24x0_i2s { #ifdef __BIG_ENDIAN diff --git a/drivers/i2c/s3c24x0_i2c.h b/drivers/i2c/s3c24x0_i2c.h new file mode 100644 index 0000000..2dd4b06 --- /dev/null +++ b/drivers/i2c/s3c24x0_i2c.h @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2012 Samsung Electronics + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +#ifndef _S3C24X0_I2C_H +#define _S3C24X0_I2C_H + +struct s3c24x0_i2c { + u32 iiccon; + u32 iicstat; + u32 iicadd; + u32 iicds; + u32 iiclc; +}; +#endif /* _S3C24X0_I2C_H */