diff mbox

[U-Boot,2/3] arm: baltos: drop I2C speed to 1000 Hz

Message ID 1436196516-4719-2-git-send-email-yegorslists@googlemail.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Yegor Yefremov July 6, 2015, 3:28 p.m. UTC
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 | 2 ++
 include/configs/baltos.h   | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

Comments

Tom Rini July 10, 2015, 12:57 p.m. UTC | #1
On Mon, Jul 06, 2015 at 05:28:35PM +0200, Yegor Yefremov wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/board/vscom/baltos/board.c b/board/vscom/baltos/board.c
index 99ca60e..09bc8c6 100644
--- a/board/vscom/baltos/board.c
+++ b/board/vscom/baltos/board.c
@@ -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;
diff --git a/include/configs/baltos.h b/include/configs/baltos.h
index 632523e..31de97f 100644
--- a/include/configs/baltos.h
+++ b/include/configs/baltos.h
@@ -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