b427c2b0fac2ead05f4540741d67f07de5126af5
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-3.0 / pm-wip / voltdm / 0069-I2C-OMAP2-increase-omap_i2c_dev_attr-flags-from-u8-t.patch
1 From edd2506bcab63d077b0ac31c5d51c6b3850dc866 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@warmcat.com>
3 Date: Sun, 10 Jul 2011 05:27:14 -0600
4 Subject: [PATCH 069/149] I2C: OMAP2+: increase omap_i2c_dev_attr flags from u8 to u32
6 As part of removing cpu_...() from the OMAP I2C driver, we need to
7 convert the CPU tests into functionality flags that are set by
8 hwmod class in the same way the IP revision is.
10 More flags are needed than will fit in the existing u8 flags
11 member of omap_i2c_dev_attr.
13 These flags can refer to options inside the IP block but they are
14 most needed for information about cpu implementation specific
15 options that are not part of the IP block itself. For example,
16 how the CPU data bus is wired to the IP block databus differs
17 between OMAP cpus and affects how you must shift the address in
18 the IP block, but is not a feature of the IP block itself.
20 Cc: patches@linaro.org
21 Cc: Ben Dooks <ben-linux@fluff.org>
22 Reported-by: Peter Maydell <peter.maydell@linaro.org>
23 Signed-off-by: Andy Green <andy.green@linaro.org>
24 Signed-off-by: Tony Lindgren <tony@atomide.com>
25 Signed-off-by: Kevin Hilman <khilman@ti.com>
26 Signed-off-by: Paul Walmsley <paul@pwsan.com>
27 ---
28 arch/arm/plat-omap/include/plat/i2c.h | 2 +-
29 1 files changed, 1 insertions(+), 1 deletions(-)
31 diff --git a/arch/arm/plat-omap/include/plat/i2c.h b/arch/arm/plat-omap/include/plat/i2c.h
32 index 878d632..4c108f5 100644
33 --- a/arch/arm/plat-omap/include/plat/i2c.h
34 +++ b/arch/arm/plat-omap/include/plat/i2c.h
35 @@ -46,7 +46,7 @@ static inline int omap_register_i2c_bus(int bus_id, u32 clkrate,
36 */
37 struct omap_i2c_dev_attr {
38 u8 fifo_depth;
39 - u8 flags;
40 + u32 flags;
41 };
43 void __init omap1_i2c_mux_pins(int bus_id);
44 --
45 1.6.6.1