2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 15:13:55 +08:00

ARM: pxa: magician: Fix platform data for both PXA27x I2C controllers

This patch changes fast_mode settings for the normal and power I2C
controller on the HTC Magician machine.

Connected device on the Power I2C:
- MAX1587A: working in the fast mode

Connected devices on the Normal I2C:
- UDA1380: working in the fast mode
- OV9640: bus became stuck in the fast mode

The OV9640 is not using a standard I2C protocol, but an SCCB variant. Maybe
it is not fully compatible in the fast mode. Therefore fast mode for normal
I2C is disabled. If you not using the OV9640 then you can enable the fast
mode for the UDA1380.

Signed-off-by: Petr Cvek <petr.cvek@tul.cz>
[included Philipp Zabel's comment change]
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
This commit is contained in:
Petr Cvek 2015-09-28 23:33:55 +02:00 committed by Robert Jarzmik
parent eac2eacc30
commit 0fb58abb5d

View File

@ -740,7 +740,16 @@ static struct platform_device strataflash = {
*/
static struct i2c_pxa_platform_data i2c_info = {
.fast_mode = 1,
/* OV9640 I2C device doesn't support fast mode */
.fast_mode = 0,
};
/*
* PXA I2C power controller
*/
static struct i2c_pxa_platform_data magician_i2c_power_info = {
.fast_mode = 1,
};
/*
@ -789,7 +798,7 @@ static void __init magician_init(void)
platform_add_devices(ARRAY_AND_SIZE(devices));
pxa_set_ficp_info(&magician_ficp_info);
pxa27x_set_i2c_power_info(NULL);
pxa27x_set_i2c_power_info(&magician_i2c_power_info);
pxa_set_i2c_info(&i2c_info);
pxa_set_mci_info(&magician_mci_info);
pxa_set_ohci_info(&magician_ohci_info);