diff options
Diffstat (limited to 'arch/arm/plat-omap/include/plat/i2c.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/i2c.h | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/arch/arm/plat-omap/include/plat/i2c.h b/arch/arm/plat-omap/include/plat/i2c.h index 7c22b9e10dc3..7a9028cb5a75 100644 --- a/arch/arm/plat-omap/include/plat/i2c.h +++ b/arch/arm/plat-omap/include/plat/i2c.h | |||
@@ -18,11 +18,15 @@ | |||
18 | * 02110-1301 USA | 18 | * 02110-1301 USA |
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | #ifndef __ASM__ARCH_OMAP_I2C_H | ||
22 | #define __ASM__ARCH_OMAP_I2C_H | ||
23 | 21 | ||
24 | #include <linux/i2c.h> | 22 | #ifndef __PLAT_OMAP_I2C_H |
25 | #include <linux/i2c-omap.h> | 23 | #define __PLAT_OMAP_I2C_H |
24 | |||
25 | struct i2c_board_info; | ||
26 | struct omap_i2c_bus_platform_data; | ||
27 | |||
28 | int omap_i2c_add_bus(struct omap_i2c_bus_platform_data *i2c_pdata, | ||
29 | int bus_id); | ||
26 | 30 | ||
27 | #if defined(CONFIG_I2C_OMAP) || defined(CONFIG_I2C_OMAP_MODULE) | 31 | #if defined(CONFIG_I2C_OMAP) || defined(CONFIG_I2C_OMAP_MODULE) |
28 | extern int omap_register_i2c_bus(int bus_id, u32 clkrate, | 32 | extern int omap_register_i2c_bus(int bus_id, u32 clkrate, |
@@ -37,23 +41,7 @@ static inline int omap_register_i2c_bus(int bus_id, u32 clkrate, | |||
37 | } | 41 | } |
38 | #endif | 42 | #endif |
39 | 43 | ||
40 | /** | ||
41 | * i2c_dev_attr - OMAP I2C controller device attributes for omap_hwmod | ||
42 | * @fifo_depth: total controller FIFO size (in bytes) | ||
43 | * @flags: differences in hardware support capability | ||
44 | * | ||
45 | * @fifo_depth represents what exists on the hardware, not what is | ||
46 | * actually configured at runtime by the device driver. | ||
47 | */ | ||
48 | struct omap_i2c_dev_attr { | ||
49 | u8 fifo_depth; | ||
50 | u32 flags; | ||
51 | }; | ||
52 | |||
53 | void __init omap1_i2c_mux_pins(int bus_id); | ||
54 | void __init omap2_i2c_mux_pins(int bus_id); | ||
55 | |||
56 | struct omap_hwmod; | 44 | struct omap_hwmod; |
57 | int omap_i2c_reset(struct omap_hwmod *oh); | 45 | int omap_i2c_reset(struct omap_hwmod *oh); |
58 | 46 | ||
59 | #endif /* __ASM__ARCH_OMAP_I2C_H */ | 47 | #endif /* __PLAT_OMAP_I2C_H */ |