diff options
author | Mike Rapoport <mike@compulab.co.il> | 2008-01-27 12:14:50 -0500 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2008-01-27 12:14:50 -0500 |
commit | b7a3670131c7662415fa799700fc0bdfe90a54b6 (patch) | |
tree | 51ff8432c3bfd82a40b0bdb89b0def7409b5ced8 /arch/arm/mach-pxa/pxa27x.c | |
parent | cea443a81c9c6257bf2d00f1392f7d1d4ce03b75 (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 'arch/arm/mach-pxa/pxa27x.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa27x.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 8e126e6b74c3..57efebdc4324 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <asm/arch/ohci.h> | 24 | #include <asm/arch/ohci.h> |
25 | #include <asm/arch/pm.h> | 25 | #include <asm/arch/pm.h> |
26 | #include <asm/arch/dma.h> | 26 | #include <asm/arch/dma.h> |
27 | #include <asm/arch/i2c.h> | ||
27 | 28 | ||
28 | #include "generic.h" | 29 | #include "generic.h" |
29 | #include "devices.h" | 30 | #include "devices.h" |
@@ -423,6 +424,11 @@ struct platform_device pxa27x_device_i2c_power = { | |||
423 | .num_resources = ARRAY_SIZE(i2c_power_resources), | 424 | .num_resources = ARRAY_SIZE(i2c_power_resources), |
424 | }; | 425 | }; |
425 | 426 | ||
427 | void __init pxa_set_i2c_power_info(struct i2c_pxa_platform_data *info) | ||
428 | { | ||
429 | pxa27x_device_i2c_power.dev.platform_data = info; | ||
430 | } | ||
431 | |||
426 | static struct platform_device *devices[] __initdata = { | 432 | static struct platform_device *devices[] __initdata = { |
427 | &pxa_device_mci, | 433 | &pxa_device_mci, |
428 | &pxa_device_udc, | 434 | &pxa_device_udc, |