]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Nokia RX-51: Decrease i2c speed to 100000
authorPali Rohár <pali@kernel.org>
Sat, 21 Nov 2020 22:30:11 +0000 (23:30 +0100)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 5 Jan 2021 15:19:52 +0000 (20:49 +0530)
It looks like that i2c bus lot of times timeout on some units. Prior
migration to CONFIG_DM_I2C i2c speed was set to CONFIG_SYS_OMAP24_I2C_SPEED
value which was 100000. Lower speed fixes timeout problems, so change speed
back to its previous value.

Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes: 8d8c18170325 ("Nokia RX-51: Convert to CONFIG_DM_I2C")
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
board/nokia/rx51/rx51.c

index 3d62b5d9ad60ee813f4504901a9ea850c2f4f3f9..2dd41604c9be5552e45b47118e2b1e7d8edf3fe4 100644 (file)
@@ -704,9 +704,9 @@ void board_mmc_power_init(void)
 }
 
 static const struct omap_i2c_platdata rx51_i2c[] = {
-       { I2C_BASE1, 2200000, OMAP_I2C_REV_V1 },
+       { I2C_BASE1, 100000, OMAP_I2C_REV_V1 },
        { I2C_BASE2, 100000, OMAP_I2C_REV_V1 },
-       { I2C_BASE3, 400000, OMAP_I2C_REV_V1 },
+       { I2C_BASE3, 100000, OMAP_I2C_REV_V1 },
 };
 
 U_BOOT_DEVICES(rx51_i2c) = {