From patchwork Tue Mar 15 19:57:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Green X-Patchwork-Id: 637041 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 p2FJvdeG007348 for ; Tue, 15 Mar 2011 19:57:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757186Ab1COT5i (ORCPT ); Tue, 15 Mar 2011 15:57:38 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:62524 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757194Ab1COT5h (ORCPT ); Tue, 15 Mar 2011 15:57:37 -0400 Received: by mail-wy0-f174.google.com with SMTP id 21so915512wya.19 for ; Tue, 15 Mar 2011 12:57:36 -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=O01/9fSvRdnQqFLXXZqO3XTIS2Ro/WgHvbWx6IhJei8=; b=lk/30ISzlc/MCjs/QqrDSMfK9vs+nDT16SQie+EsbbXfejuoBA48FDRDd5XubhdQtK 8xpjg+Jxzl3YmxWr0ldHBVfw3il3508WertDK+VMQLcVwAbhAUAtoez4Vkm4Re8bR57Y 1iy/vw2R44OBH77jbteie8kVxae2+Fre+F8eM= 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=TY6u/utGvFPZRNCqvy6dFJ5Y0LcFulnPYYaSbSQyHGGJ4f6jaiKZ0xVVhDbwy7r0mx sq3yjX2th1mkUJmyWkOK0cs/8Mje6YjdV/CynG1MJZTHGO97R+zPRrVHBbdAH4szzSuk YxQiMjoNHnZGX+hVLMKXpa8Px8QRKHLnlXlLM= Received: by 10.216.72.201 with SMTP id t51mr4111665wed.6.1300219056874; Tue, 15 Mar 2011 12:57:36 -0700 (PDT) Received: from otae.warmcat.com (s15404224.onlinehome-server.info [87.106.134.80]) by mx.google.com with ESMTPS id h39sm113003wes.5.2011.03.15.12.57.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Mar 2011 12:57:36 -0700 (PDT) From: Andy Green Subject: [PATCH 3 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, 15 Mar 2011 19:57:34 +0000 Message-ID: <20110315195734.30000.12009.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 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, 15 Mar 2011 19:57:40 +0000 (UTC) diff --git a/include/linux/i2c-omap.h b/include/linux/i2c-omap.h index 776c8e1..56a9924 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 BIT(0) +#define OMAP_I2C_FLAG_SIMPLE_CLOCK BIT(1) +#define OMAP_I2C_FLAG_16BIT_DATA_REG BIT(2) +#define OMAP_I2C_FLAG_RESET_REGS_POSTIDLE BIT(3) +#define OMAP_I2C_FLAG_APPLY_ERRATA_I207 BIT(4) +#define OMAP_I2C_FLAG_ALWAYS_ARMXOR_CLK BIT(5) +#define OMAP_I2C_FLAG_FORCE_19200_INT_CLK BIT(6) +/* 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 BIT(7) +#define OMAP_I2C_FLAG_BUS_SHIFT_2 BIT(8) +#define OMAP_I2C_FLAG_BUS_SHIFT__SHIFT 7 + struct omap_i2c_bus_platform_data { u32 clkrate; u32 rev;