]> git.sur5r.net Git - u-boot/commitdiff
arm: baltos: drop I2C speed to 1000 Hz
authorYegor Yefremov <yegorslists@googlemail.com>
Mon, 6 Jul 2015 15:28:35 +0000 (17:28 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 9 Jul 2015 01:51:37 +0000 (21:51 -0400)
This action is need to make I2C communication with PMIC
stable for low temperature. Print current I2C speed in
SPL for visual control.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
board/vscom/baltos/board.c
include/configs/baltos.h

index 99ca60e2ac16dd085de3b7a5c1cd680fd95be625..09bc8c682a4454bd27ecb5ab886b7d30ab91d09f 100644 (file)
@@ -184,6 +184,8 @@ void am33xx_spl_board_init(void)
         */
        i2c_set_bus_num(1);
 
+       printf("I2C speed: %d Hz\n", CONFIG_SYS_OMAP24_I2C_SPEED);
+
        if (i2c_probe(TPS65910_CTRL_I2C_ADDR)) {
                puts("i2c: cannot access TPS65910\n");
                return;
index 632523e965280ffdfc1464c3a56566ea0ed8ea8d..31de97f2860efb2cf292e43a8156d937bfc1a427 100644 (file)
@@ -52,7 +52,7 @@
 
 /* I2C configuration */
 #undef CONFIG_SYS_OMAP24_I2C_SPEED
-#define CONFIG_SYS_OMAP24_I2C_SPEED 10000
+#define CONFIG_SYS_OMAP24_I2C_SPEED 1000
 
 #ifdef CONFIG_NAND
 #define CONFIG_SYS_NAND_U_BOOT_OFFS    0x000c0000