From patchwork Tue Mar 8 11:08:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Green X-Patchwork-Id: 426 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 o4cs23928qah; Tue, 8 Mar 2011 03:08:09 -0800 (PST) Received: by 10.227.57.210 with SMTP id d18mr4385463wbh.82.1299582488252; Tue, 08 Mar 2011 03:08:08 -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.08.07 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 03:08:08 -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:08:07 -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=1A7lWzsOeipkP5uwtgSIi6Q0Vj/Zhg+3nyuPaJN2Kj0=; b=uA7yzncfwkUfq8GggbyyEduRqD5pYwRA/NPOifJolvNv1WC8RfveEp00bZ+tnL3yaE pPzHcEAOCfN26qCohjK+SmyLTzHWB3T/ceKos62yBpuNXdSVo2akB/tGpDB0CJFZSWSp f3qU61WFmBhm9YRUcecr1JSJMrs3fgr/J88yo= 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=SOqU9fZAFTkqJn8xahrW1Ou0EbBpL3MrgHc9y6RAHsQIu8yFosCcDUsgRy78vyxvKu zp9GRQRMhq+R+/vzAQtcNvq0eKucdwpDLcTvfyQ8PkhCsnxqssn3rjTZmUSBuSQa8OIo x8QPC9WQDJWZkAh/P+wHS5yBiXY1bAYT5lw8o= Received: by 10.227.93.36 with SMTP id t36mr4460408wbm.11.1299582487433; Tue, 08 Mar 2011 03:08:07 -0800 (PST) Received: from otae.warmcat.com (s15404224.onlinehome-server.info [87.106.134.80]) by mx.google.com with ESMTPS id o6sm481021wbo.9.2011.03.08.03.08.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 03:08:07 -0800 (PST) Sender: Andy Green From: Andy Green Subject: [PATCH 2 06/18] I2C: OMAP1: set IP revision in 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:08:05 +0000 Message-ID: <20110308110804.23531.45336.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 All OMAP1 are using "IP revision 1" in terms of register layout. We set this information in omap1_i2c_add_bus() so we don't have to use cpu_is_xxx() any more in the omap i2c driver. Cc: patches@linaro.org Cc: Ben Dooks Reported-by: Peter Maydell Signed-off-by: Andy Green --- arch/arm/plat-omap/i2c.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index 3341ca4..a938df0 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c @@ -108,6 +108,9 @@ static inline int omap1_i2c_add_bus(int bus_id) res[1].start = INT_I2C; pdata = &i2c_pdata[bus_id - 1]; + /* all OMAP1 have IP version 1 register set */ + pdata->rev = OMAP_I2C_IP_VERSION_1; + return platform_device_register(pdev); }