From patchwork Wed Mar 16 07:18: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: 620 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:10 -0000 Delivered-To: patches@linaro.org Received: by 10.151.46.5 with SMTP id y5cs1267ybj; Wed, 16 Mar 2011 00:19:02 -0700 (PDT) Received: by 10.216.180.76 with SMTP id i54mr5105532wem.33.1300259941312; Wed, 16 Mar 2011 00:19:01 -0700 (PDT) Received: from mail-wy0-f178.google.com (mail-wy0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id e7si1130422wer.165.2011.03.16.00.18.59 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2011 00:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of andy.warmcat.com@googlemail.com designates 74.125.82.178 as permitted sender) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=pass (google.com: domain of andy.warmcat.com@googlemail.com designates 74.125.82.178 as permitted sender) smtp.mail=andy.warmcat.com@googlemail.com; dkim=pass (test mode) header.i=@googlemail.com Received: by wyj26 with SMTP id 26so1558835wyj.37 for ; Wed, 16 Mar 2011 00:18:59 -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=DBUJ36VGbFhhE3nRsfVI8z2ivNinUh4K9CVKDgaxUBv1vgjQLrXLntGSY79Lq3UWlF n+EDcNGJYjJAoIjJRnd1Vzvf2tL0yBX1IvzA4/wBSpYkGVj2+LZNYjER6M7eNGgUk592 EFx/7dAM4oTgRK+Y49+Zk3aRWCgBEGKLZOzFI= 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=YCc4LMd8zyKmfnx5OwpA+g5GNsPvkaQ4hZAVuSST7Tsk+r5Z2vlC+vLhB8Y54WAYnp bL9m0Uqp8HuBI8gZ5UXyGAd2SQtN2oJM0tCYeWZerk4/nBtobupw7lQ9pxP4cNPz+uR+ rVmx0R+pKqDCuDbVJGqXvdn2wewd06tNfRGFg= Received: by 10.227.0.152 with SMTP id 24mr416463wbb.126.1300259939139; Wed, 16 Mar 2011 00:18:59 -0700 (PDT) Received: from otae.warmcat.com (cpc1-nrte21-2-0-cust677.8-4.cable.virginmedia.com [81.111.78.166]) by mx.google.com with ESMTPS id w25sm783249wbd.5.2011.03.16.00.18.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2011 00:18:58 -0700 (PDT) Sender: Andy Green From: Andy Green Subject: [PATCH 3 05/18] I2C: OMAP: add rev to omap i2c platform data To: linux-i2c@lists.infradead.org Cc: patches@linaro.org, Ben Dooks , Andy Green Date: Wed, 16 Mar 2011 07:18:57 +0000 Message-ID: <20110316071857.453.1370.stgit@otae.warmcat.com> In-Reply-To: <20110316071633.453.22228.stgit@otae.warmcat.com> References: <20110316071633.453.22228.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);