From patchwork Tue Mar 8 11:08:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Green X-Patchwork-Id: 429 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:37 -0000 Delivered-To: patches@linaro.org Received: by 10.224.60.68 with SMTP id o4cs23953qah; Tue, 8 Mar 2011 03:08:45 -0800 (PST) Received: by 10.227.162.77 with SMTP id u13mr4373465wbx.187.1299582525174; Tue, 08 Mar 2011 03:08:45 -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.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 03:08:45 -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:44 -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=rQPJOqOb+tntQVWtHKfcwYIHwJD8MRnML5Eppkmwtio=; b=INEW1oxp6M6F9cxocEjSq/IES/KTv3lwI8GUhisBikbSTk+mCas34mtusZtdYIN/F4 DnBDdmUUwFHhNryo/dBApZF6pJXyuzZoLjmzAbhq37e9oiCoxgxaTLp3ID0j33ZDtxnt w7Vr2SjdhDnsDpAZm/lcWnnouN2dSN4dIPf5o= 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=Pw9RZjFZG2qmRsiOZ1zWoi/P7mUXEBMGHttRS1npG0dIQmJF55juqFpyZAMzSpIO5O uKicl/n4+smxiVR3Y0tnFhBQMMxvSRX88PBT/hx4D9LU6RSewXa0PouzS9EeG48f8Tge gc8xF5z035afb8FDCRpdcMLaFWGHlwAYqRBrk= Received: by 10.227.139.164 with SMTP id e36mr4444081wbu.94.1299582524350; Tue, 08 Mar 2011 03:08:44 -0800 (PST) Received: from otae.warmcat.com (s15404224.onlinehome-server.info [87.106.134.80]) by mx.google.com with ESMTPS id w25sm475343wbd.23.2011.03.08.03.08.43 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 03:08:44 -0800 (PST) Sender: Andy Green From: Andy Green Subject: [PATCH 2 11/18] I2C: OMAP2+: increase omap_i2c_dev_attr flags from u8 to u32 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:42 +0000 Message-ID: <20110308110842.23531.98228.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 As part of removing cpu_...() from the OMAP I2C driver, we need to convert the CPU tests into functionality flags that are set by hwmod class in the same way the IP revision is. More flags are needed than will fit in the existing u8 flags member of omap_i2c_dev_attr. These flags can refer to options inside the IP block but they are most needed for information about cpu implementation specific options that are not part of the IP block itself. For example, how the CPU data bus is wired to the IP block databus differs between OMAP cpus and affects how you must shift the address in the IP block, but is not a feature of the IP block itself. Cc: patches@linaro.org Cc: Ben Dooks Reported-by: Peter Maydell Signed-off-by: Andy Green --- arch/arm/plat-omap/include/plat/i2c.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-omap/include/plat/i2c.h b/arch/arm/plat-omap/include/plat/i2c.h index a1d3d06..fd75dad 100644 --- a/arch/arm/plat-omap/include/plat/i2c.h +++ b/arch/arm/plat-omap/include/plat/i2c.h @@ -47,7 +47,7 @@ static inline int omap_register_i2c_bus(int bus_id, u32 clkrate, */ struct omap_i2c_dev_attr { u8 fifo_depth; - u8 flags; + u32 flags; }; void __init omap1_i2c_mux_pins(int bus_id);