From patchwork Tue Mar 8 11:07:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Green X-Patchwork-Id: 427 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:42:36 -0000 Delivered-To: patches@linaro.org Received: by 10.224.60.68 with SMTP id o4cs23924qah; Tue, 8 Mar 2011 03:08:01 -0800 (PST) Received: by 10.227.101.2 with SMTP id a2mr4455949wbo.20.1299582480621; Tue, 08 Mar 2011 03:08:00 -0800 (PST) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id j3si809987wbc.21.2011.03.08.03.07.59 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 03:08:00 -0800 (PST) Received-SPF: pass (google.com: domain of andy.warmcat.com@googlemail.com designates 74.125.82.50 as permitted sender) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of andy.warmcat.com@googlemail.com designates 74.125.82.50 as permitted sender) smtp.mail=andy.warmcat.com@googlemail.com; dkim=pass (test mode) header.i=@googlemail.com Received: by mail-ww0-f50.google.com with SMTP id 33so899432wwc.31 for ; Tue, 08 Mar 2011 03:07:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:sender:from:subject:to:cc:date:message-id :in-reply-to:references:user-agent:mime-version:content-type :content-transfer-encoding; bh=ytqBFPiO7e3ILKL53lxKmry7tqbQr17ydaVw/pnALYw=; b=PZiX7TSY2vGSf2ODFjzYWQFgqfMt7bYhQgARAF91SkqQd24bV8pKlahvChMbEQVZhB 4OMGTyOJkKZPMgqeiujac8zoHNr0dPqUC3/FoVyTaBNF82CC8PfuLMJXgD/bEpZFlflF Y9V4yns18xKa26rSBmjcaRbVsvVolccibLhMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:from:subject:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; b=D1Et+nZ8VntXPtuRc/3LrySNZzCXIwDNpSL9CdtYd0lBe3Gx9j4KkTeT/VEI6zAB7j 2RHFKRARHadUTXmwnB66BlkJ2hQVe/RUBQmXQdlv6fz5/rzNackeZ0lNyPGc0SzkDhxU qFQb52Du5Saewvo4Sy0K55w4xcbZIQ0r8ZBus= Received: by 10.227.180.138 with SMTP id bu10mr4472007wbb.226.1299582479794; Tue, 08 Mar 2011 03:07:59 -0800 (PST) Received: from otae.warmcat.com (s15404224.onlinehome-server.info [87.106.134.80]) by mx.google.com with ESMTPS id f52sm249640wes.35.2011.03.08.03.07.58 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 03:07:59 -0800 (PST) Sender: Andy Green From: Andy Green Subject: [PATCH 2 05/18] I2C: OMAP: add rev to omap i2c platform data To: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Cc: patches@linaro.org, Ben Dooks , Andy Green Date: Tue, 08 Mar 2011 11:07:57 +0000 Message-ID: <20110308110757.23531.58382.stgit@otae.warmcat.com> In-Reply-To: <20110308105934.23531.83540.stgit@otae.warmcat.com> References: <20110308105934.23531.83540.stgit@otae.warmcat.com> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 We need to pass the I2C IP revision from the hwmod class up into the OMAP I2C driver, which does not have direct access to it. This adds a member to the platform data the OMAP I2C driver does use already to hold the I2C IP revision. Cc: patches@linaro.org Cc: Ben Dooks Reported-by: Peter Maydell Signed-off-by: Andy Green --- include/linux/i2c-omap.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/i2c-omap.h b/include/linux/i2c-omap.h index 701886d..b321211 100644 --- a/include/linux/i2c-omap.h +++ b/include/linux/i2c-omap.h @@ -17,6 +17,7 @@ struct omap_i2c_bus_platform_data { u32 clkrate; + u32 rev; void (*set_mpu_wkup_lat)(struct device *dev, long set); int (*device_enable) (struct platform_device *pdev); int (*device_shutdown) (struct platform_device *pdev);