From patchwork Tue Mar 8 11:09:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Green X-Patchwork-Id: 617971 X-Patchwork-Delegate: tony@atomide.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 p28B9AB4026980 for ; Tue, 8 Mar 2011 11:09:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754100Ab1CHLJJ (ORCPT ); Tue, 8 Mar 2011 06:09:09 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:52226 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754038Ab1CHLJH (ORCPT ); Tue, 8 Mar 2011 06:09:07 -0500 Received: by mail-ww0-f44.google.com with SMTP id 36so951436wwa.1 for ; Tue, 08 Mar 2011 03:09: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=jjEChbwLh0X5mBw/VcDq7DCa8avsOZ9+xlaI6WY9yM8=; b=n/ZBwMtuCIFO3y7uoLhqYRypKIsi+ST9NIet9ayYKa3sozcyfr0Pj5pSEJbdnw413o UcH8SRo9hAdg3wwUdKXM+REKc/htUAKoajTndGVQbwlLJqOJCpeYulHmMyIeqRJJhGNX 1h3TV5zOxyzjcGwP+5ZuHGsPpexFMk+yaVoFs= 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=BilLZjU3XGGIba7rgZ+eDHRZVWS0dgSMEZzTaGKszicjZRcsypka2Q1bpToYluCumZ AKkcOuai2LOpnbfCrAJwDLnacl1590u6EZPIyKksbzXSqn1gLj89VhfZSy5zo45wwg7m 4FLIJD6cTpS25sbzbvd3T2yD5oFpm/o6rQENA= Received: by 10.227.202.11 with SMTP id fc11mr4367530wbb.131.1299582547006; Tue, 08 Mar 2011 03:09:07 -0800 (PST) Received: from otae.warmcat.com (s15404224.onlinehome-server.info [87.106.134.80]) by mx.google.com with ESMTPS id x1sm484231wbh.2.2011.03.08.03.09.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 03:09:06 -0800 (PST) From: Andy Green Subject: [PATCH 2 14/18] I2C: OMAP1/OMAP2+: create omap I2C functionality flags for each cpu_... test 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:09:04 +0000 Message-ID: <20110308110904.23531.66727.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 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]); Tue, 08 Mar 2011 11:09:10 +0000 (UTC) diff --git a/include/linux/i2c-omap.h b/include/linux/i2c-omap.h index 776c8e1..98ae49b 100644 --- a/include/linux/i2c-omap.h +++ b/include/linux/i2c-omap.h @@ -15,6 +15,21 @@ #define OMAP_I2C_IP_VERSION_1 1 #define OMAP_I2C_IP_VERSION_2 2 +/* struct omap_i2c_bus_platform_data .flags meanings */ + +#define OMAP_I2C_FLAG_NO_FIFO 1 +#define OMAP_I2C_FLAG_SIMPLE_CLOCK 2 +#define OMAP_I2C_FLAG_16BIT_DATA_REG 4 +#define OMAP_I2C_FLAG_RESET_REGS_POSTIDLE 8 +#define OMAP_I2C_FLAG_APPLY_ERRATA_I207 0x10 +#define OMAP_I2C_FLAG_ALWAYS_ARMXOR_CLK 0x20 +#define OMAP_I2C_FLAG_FORCE_19200_INT_CLK 0x40 +/* how the CPU address bus must be translated for I2C unit access */ +#define OMAP_I2C_FLAG_BUS_SHIFT_NONE 0 +#define OMAP_I2C_FLAG_BUS_SHIFT_1 0x80 +#define OMAP_I2C_FLAG_BUS_SHIFT_2 0x100 +#define OMAP_I2C_FLAG_BUS_SHIFT__SHIFT 7 + struct omap_i2c_bus_platform_data { u32 clkrate; u32 rev;