Commit e6b1b58bedbc507f840b2bae06eadb1d34512efa

Authored by Yegor Yefremov
Committed by Tom Rini
1 parent 5833521b38

arm: baltos: drop I2C speed to 1000 Hz

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>

Showing 2 changed files with 3 additions and 1 deletions Side-by-side Diff

board/vscom/baltos/board.c
... ... @@ -184,6 +184,8 @@
184 184 */
185 185 i2c_set_bus_num(1);
186 186  
  187 + printf("I2C speed: %d Hz\n", CONFIG_SYS_OMAP24_I2C_SPEED);
  188 +
187 189 if (i2c_probe(TPS65910_CTRL_I2C_ADDR)) {
188 190 puts("i2c: cannot access TPS65910\n");
189 191 return;
include/configs/baltos.h
... ... @@ -52,7 +52,7 @@
52 52  
53 53 /* I2C configuration */
54 54 #undef CONFIG_SYS_OMAP24_I2C_SPEED
55   -#define CONFIG_SYS_OMAP24_I2C_SPEED 10000
  55 +#define CONFIG_SYS_OMAP24_I2C_SPEED 1000
56 56  
57 57 #ifdef CONFIG_NAND
58 58 #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x000c0000