From patchwork Tue Mar 15 19:57:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Green X-Patchwork-Id: 598 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:03 -0000 Delivered-To: patches@linaro.org Received: by 10.151.46.5 with SMTP id y5cs80513ybj; Tue, 15 Mar 2011 12:57:15 -0700 (PDT) Received: by 10.227.200.73 with SMTP id ev9mr13067010wbb.207.1300219035050; Tue, 15 Mar 2011 12:57:15 -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.57.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Mar 2011 12:57:15 -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 mail-ww0-f50.google.com with SMTP id 33so1213249wwc.31 for ; Tue, 15 Mar 2011 12:57:14 -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=rQPJOqOb+tntQVWtHKfcwYIHwJD8MRnML5Eppkmwtio=; b=Cb3fyXwrXMzqOc4I+0knj2RFF8MqPPyIMSUs7XPV6DyHndfgJ77juRyaFzE0y4WJYG wN8s4pelm/fSrVQRKwzsulgl4ZYflrgEAVj57ZD/pL7ldFwH91yagYkQTPXFrd6bkyqL JN7Fac0XsccALmZZHjtdmZFZvI0GQdB14LqyI= 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=t+zlwZ6szGsXI6manxgzfz1QXu4dIhXX2TOcye1YmpRJ4M+q2NzaWbsFt6U4bpADRo Yx8bXBztkoQcvurfOQ5mxM1/8nKpyQEga4SqcJONLXQ3ofWyW8Lp0QY5fyFgfcs3TZBx AC5EAdnzvEv9YvMyfOCF6t132TsBsuBNV/JBA= Received: by 10.227.199.210 with SMTP id et18mr4571389wbb.227.1300219034136; Tue, 15 Mar 2011 12:57:14 -0700 (PDT) Received: from otae.warmcat.com (s15404224.onlinehome-server.info [87.106.134.80]) by mx.google.com with ESMTPS id y29sm167542wbd.4.2011.03.15.12.57.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Mar 2011 12:57:13 -0700 (PDT) Sender: Andy Green From: Andy Green Subject: [PATCH 3 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, 15 Mar 2011 19:57:11 +0000 Message-ID: <20110315195711.30000.91979.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 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);