From patchwork Tue Mar 15 19:56:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Green X-Patchwork-Id: 596 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:44:02 -0000 Delivered-To: patches@linaro.org Received: by 10.151.46.5 with SMTP id y5cs80490ybj; Tue, 15 Mar 2011 12:56:31 -0700 (PDT) Received: by 10.227.179.139 with SMTP id bq11mr568647wbb.202.1300218990904; Tue, 15 Mar 2011 12:56:30 -0700 (PDT) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id x20si329091wbd.10.2011.03.15.12.56.28 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Mar 2011 12:56:29 -0700 (PDT) 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 wwc33 with SMTP id 33so1213249wwc.31 for ; Tue, 15 Mar 2011 12:56:28 -0700 (PDT) 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=HZqMFGHn2nnRBxDQkp664ZhS+oMaFhsEyMY5IxKaVmvyNLTZxvGXoo722+rPPCBuy4 KFs9AT/BfTGzUI7qmv81u1VsBV6gpVFus0tXbDq2J35JKdXHyHl7nedulNtIkRjq1CWU YP3bHjCW1rVv7nJVgBD+RT5gvx/UeltznCxLs= 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=lgyDgBaCYbL+S2KmNdf+GgK7/Y5DqhHtK6VwT7quNxFQL95VLZoBcJiEicYZ1u71M8 0KdyRbQdefX4Mt9GaGUiknbB4Y0dyInXUO3C6KsoeHyWrz5CzhRPdk0BI1+Oj/HM2adJ 0KPeP1XBF4112EvrWPF2EgLY3LdOVhxWT3CxE= Received: by 10.216.254.39 with SMTP id g39mr7438703wes.108.1300218988740; Tue, 15 Mar 2011 12:56:28 -0700 (PDT) Received: from otae.warmcat.com (s15404224.onlinehome-server.info [87.106.134.80]) by mx.google.com with ESMTPS id m2sm104408wer.37.2011.03.15.12.56.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Mar 2011 12:56:28 -0700 (PDT) Sender: Andy Green From: Andy Green Subject: [PATCH 3 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, 15 Mar 2011 19:56:26 +0000 Message-ID: <20110315195626.30000.99578.stgit@otae.warmcat.com> In-Reply-To: <20110315195147.30000.86184.stgit@otae.warmcat.com> References: <20110315195147.30000.86184.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);