aboutsummaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-pxa/i2c.h
diff options
context:
space:
mode:
authorMike Rapoport <mike@compulab.co.il>2008-01-27 18:14:50 +0100
committerJean Delvare <khali@hyperion.delvare>2008-01-27 18:14:50 +0100
commitb7a3670131c7662415fa799700fc0bdfe90a54b6 (patch)
tree51ff8432c3bfd82a40b0bdb89b0def7409b5ced8 /include/asm-arm/arch-pxa/i2c.h
parentcea443a81c9c6257bf2d00f1392f7d1d4ce03b75 (diff)
i2c-pxa: Add polling transfer
Add polling I2C transfer implementation for PXA I2C. This is needed for cases where I2C transactions have to occur at times interrups are disabled. Signed-off-by: Mike Rapoport <mike@compulab.co.il> Acked-by: eric miao <eric.miao@marvell.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'include/asm-arm/arch-pxa/i2c.h')
-rw-r--r--include/asm-arm/arch-pxa/i2c.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-arm/arch-pxa/i2c.h b/include/asm-arm/arch-pxa/i2c.h
index e404b233d8a..80596b01344 100644
--- a/include/asm-arm/arch-pxa/i2c.h
+++ b/include/asm-arm/arch-pxa/i2c.h
@@ -65,7 +65,13 @@ struct i2c_pxa_platform_data {
unsigned int slave_addr;
struct i2c_slave_client *slave;
unsigned int class;
+ int use_pio;
};
extern void pxa_set_i2c_info(struct i2c_pxa_platform_data *info);
+
+#ifdef CONFIG_PXA27x
+extern void pxa_set_i2c_power_info(struct i2c_pxa_platform_data *info);
+#endif
+
#endif