From patchwork Thu Jul 5 11:59:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 9838 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 E11AF23E23 for ; Thu, 5 Jul 2012 11:55:31 +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 B0EDFA187B9 for ; Thu, 5 Jul 2012 11:55:31 +0000 (UTC) Received: by mail-yw0-f52.google.com with SMTP id p61so8733992yhp.11 for ; Thu, 05 Jul 2012 04:55:31 -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=FPPe/bEglgCpUrbgya/3cAFHtJP9RCxJrraC7D+X+9M=; b=n4a2I6ZNTO6obEj2rOsRqpqU3XaMuqZiNNd+P201APsf5qbXh0IReAXphp3MphW1Xv JvF2ijaMgWV0DwZeQLFJcfd8WAmvYuq02O3jn1iZjLZtsa7Q1LJdhFYW9ROL5dAwT+nS 3trRoXtVihCIaG/qFkrXZEmU1HNjoSfvFeel2y2ExLvdvsnJzytiU1ZlZ1hdDJfsG6s3 hA/mivQU/6+zd/GExQ0DF+yWx1KnkriVW1b8UaiSQV7lJThGj5cibdsotBZn1LRMBHAn MLuwj5yMAvcjZrujxV+ceEQbk/MyyOluldlij6Jt6nl2Ye6MYpDlYqP3czfopdNaVjka 7nhg== Received: by 10.50.163.99 with SMTP id yh3mr13658166igb.53.1341489331179; Thu, 05 Jul 2012 04:55:31 -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 v20csp64375ibb; Thu, 5 Jul 2012 04:55:30 -0700 (PDT) Received: by 10.68.136.229 with SMTP id qd5mr27522563pbb.2.1341489330445; Thu, 05 Jul 2012 04:55:30 -0700 (PDT) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id qf1si37543081pbc.235.2012.07.05.04.55.30; Thu, 05 Jul 2012 04:55:30 -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 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 <0M6O001WMRS24L40@mailout1.samsung.com>; Thu, 05 Jul 2012 20:55:29 +0900 (KST) X-AuditID: cbfee61b-b7f566d000005c8a-8d-4ff580b1fba2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 29.C7.23690.1B085FF4; Thu, 05 Jul 2012 20:55:29 +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 <0M6O00E8SRRY5M50@mmp2.samsung.com>; Thu, 05 Jul 2012 20:55:28 +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 Subject: [PATCH 4/7 V5] I2C: Move struct s3c24x0_i2c to a common place. Date: Thu, 05 Jul 2012 17:29:49 +0530 Message-id: <1341489592-24243-5-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1341489592-24243-1-git-send-email-rajeshwari.s@samsung.com> References: <1341489592-24243-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGJMWRmVeSWpSXmKPExsVy+t9jQd2NDV/9DS7+Zrd4uP4mi8WUw19Y HJg87lzbwxbAGMVlk5Kak1mWWqRvl8CVcf6hfsFF4Yp5OxMaGM/zdzFyckgImEhcnDyBFcIW k7hwbz1bFyMXh5DAdEaJbfd+s0M4E5kknn67yQhSxSZgJLH15DQwW0RAQuJX/1VGkCJmgVmM Eou2NLKBJIQF3CWeHdjODmKzCKhK9BzYARbnFfCQ+NHxiAVinYLEsalfwVZzCnhK/Ox/BlTD AbTNQ+LiYpkJjLwLGBlWMYqmFiQXFCel5xrpFSfmFpfmpesl5+duYgT7/pn0DsZVDRaHGAU4 GJV4eAVqv/oLsSaWFVfmHmKU4GBWEuHtzQAK8aYkVlalFuXHF5XmpBYfYpTmYFES5zXxBkoJ pCeWpGanphakFsFkmTg4pRoYWfe5/F543EM04v+c7u7wh0u+h+96FRSznGFef88B7V0ayw6a ZETGFe93fu82L7ZEjV/ntGVp8nbn56zePrYq9aGx24/PvzonYI5za9K514Uqj2MLRV+mTZvf +9mtb17O7aBJzWb1VYpas/Zxv5bMmpB2JuHI9tMiR/dOf7tPSfbTB/c+0ceGSizFGYmGWsxF xYkA9KqRYPkBAAA= X-TM-AS-MML: No X-Gm-Message-State: ALoCoQnb6PIrwVR6e2VCRmJ5bwrn0DUhJw+jhIpF5Y/Io1qccS9neejGFWM/m9ScpgOTwc/4yMh2 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 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 */