From patchwork Thu Jun 2 00:19:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 842172 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p520K9IK020585 for ; Thu, 2 Jun 2011 00:20:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759236Ab1FBAUJ (ORCPT ); Wed, 1 Jun 2011 20:20:09 -0400 Received: from na3sys009aog103.obsmtp.com ([74.125.149.71]:47243 "EHLO na3sys009aog103.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759230Ab1FBAUG (ORCPT ); Wed, 1 Jun 2011 20:20:06 -0400 Received: from mail-pz0-f51.google.com ([209.85.210.51]) (using TLSv1) by na3sys009aob103.postini.com ([74.125.148.12]) with SMTP ID DSNKTebXNQCvdqedDcVuV+Ok5YoxpRjyqui7@postini.com; Wed, 01 Jun 2011 17:20:06 PDT Received: by mail-pz0-f51.google.com with SMTP id 26so155880pzk.38 for ; Wed, 01 Jun 2011 17:20:05 -0700 (PDT) Received: by 10.68.6.5 with SMTP id w5mr43434pbw.15.1306974005602; Wed, 01 Jun 2011 17:20:05 -0700 (PDT) Received: from localhost (c-24-19-7-36.hsd1.wa.comcast.net [24.19.7.36]) by mx.google.com with ESMTPS id p5sm70788pbd.44.2011.06.01.17.20.04 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2011 17:20:04 -0700 (PDT) From: Kevin Hilman To: Ben Dooks , linux-i2c@vger.kernel.org Cc: Andy Green , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 11/18] I2C: OMAP2+: increase omap_i2c_dev_attr flags from u8 to u32 Date: Wed, 1 Jun 2011 17:19:37 -0700 Message-Id: <1306973984-15165-12-git-send-email-khilman@ti.com> X-Mailer: git-send-email 1.7.4 In-Reply-To: <1306973984-15165-1-git-send-email-khilman@ti.com> References: <1306973984-15165-1-git-send-email-khilman@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 02 Jun 2011 00:20:11 +0000 (UTC) From: Andy Green 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 Signed-off-by: Tony Lindgren Signed-off-by: Kevin Hilman --- 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);