]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-3.0/pm-wip/voltdm/0071-I2C-OMAP1-OMAP2-create-omap-I2C-functionality-flags-.patch
linux 3.0: update to 3.0.17
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-3.0 / pm-wip / voltdm / 0071-I2C-OMAP1-OMAP2-create-omap-I2C-functionality-flags-.patch
1 From 46e0d0dce7d030781e2c67cce0438384ee8dd707 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@warmcat.com>
3 Date: Sun, 10 Jul 2011 05:27:15 -0600
4 Subject: [PATCH 071/149] I2C: OMAP1/OMAP2+: create omap I2C functionality flags for each cpu_... test
6 These represent the 8 kinds of implementation functionality
7 that up until now were inferred by the 16 remaining cpu_...()
8 tests in the omap i2c driver.
10 Changed to use BIT() as suggested by Balaji T Krishnamoorthy.
12 Cc: patches@linaro.org
13 Cc: Ben Dooks <ben-linux@fluff.org>
14 Reported-by: Peter Maydell <peter.maydell@linaro.org>
15 Signed-off-by: Andy Green <andy.green@linaro.org>
16 Signed-off-by: Tony Lindgren <tony@atomide.com>
17 Signed-off-by: Kevin Hilman <khilman@ti.com>
18 Signed-off-by: Paul Walmsley <paul@pwsan.com>
19 ---
20  include/linux/i2c-omap.h |   15 +++++++++++++++
21  1 files changed, 15 insertions(+), 0 deletions(-)
23 diff --git a/include/linux/i2c-omap.h b/include/linux/i2c-omap.h
24 index 701886d..0aa0cbd 100644
25 --- a/include/linux/i2c-omap.h
26 +++ b/include/linux/i2c-omap.h
27 @@ -15,6 +15,21 @@
28  #define OMAP_I2C_IP_VERSION_1 1
29  #define OMAP_I2C_IP_VERSION_2 2
30  
31 +/* struct omap_i2c_bus_platform_data .flags meanings */
32 +
33 +#define OMAP_I2C_FLAG_NO_FIFO                  BIT(0)
34 +#define OMAP_I2C_FLAG_SIMPLE_CLOCK             BIT(1)
35 +#define OMAP_I2C_FLAG_16BIT_DATA_REG           BIT(2)
36 +#define OMAP_I2C_FLAG_RESET_REGS_POSTIDLE      BIT(3)
37 +#define OMAP_I2C_FLAG_APPLY_ERRATA_I207        BIT(4)
38 +#define OMAP_I2C_FLAG_ALWAYS_ARMXOR_CLK        BIT(5)
39 +#define OMAP_I2C_FLAG_FORCE_19200_INT_CLK      BIT(6)
40 +/* how the CPU address bus must be translated for I2C unit access */
41 +#define OMAP_I2C_FLAG_BUS_SHIFT_NONE 0
42 +#define OMAP_I2C_FLAG_BUS_SHIFT_1              BIT(7)
43 +#define OMAP_I2C_FLAG_BUS_SHIFT_2              BIT(8)
44 +#define OMAP_I2C_FLAG_BUS_SHIFT__SHIFT 7
45 +
46  struct omap_i2c_bus_platform_data {
47         u32             clkrate;
48         void            (*set_mpu_wkup_lat)(struct device *dev, long set);
49 -- 
50 1.7.2.5