summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorckkim <changkon12@gmail.com>2022-04-14 08:15:39 +0300
committerckkim <changkon12@gmail.com>2022-04-14 08:15:39 +0300
commit19f5f43e30149573e8b32201bfc9216d8051cd45 (patch)
tree50b496da192b460a0b4878b46ccc57fb11dfaa56
parente2abc5921e892c2a1a75003b5ff1fdbfa04b40a0 (diff)
downloadu-boot-19f5f43e30149573e8b32201bfc9216d8051cd45.tar.xz
ODROID-C4:Reduce to i2c_ack wait_time 500uSec.
Signed-off-by: ckkim <changkon12@gmail.com> Change-Id: I1c8354cf53c4b8ef128054977839e956378d5c2d
-rw-r--r--board/hardkernel/odroidc4/odroidc4.c4
-rw-r--r--drivers/i2c/aml_i2c.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/board/hardkernel/odroidc4/odroidc4.c b/board/hardkernel/odroidc4/odroidc4.c
index d3f56cc16a..5a858a3c32 100644
--- a/board/hardkernel/odroidc4/odroidc4.c
+++ b/board/hardkernel/odroidc4/odroidc4.c
@@ -224,7 +224,7 @@ int board_mmc_init(bd_t *bis)
#ifdef CONFIG_SYS_I2C_AML
struct aml_i2c_platform g_aml_i2c_plat[] = {
{
- .wait_count = 1000000,
+ .wait_count = 100,
.wait_ack_interval = 5,
.wait_read_interval = 5,
.wait_xfer_interval = 5,
@@ -406,7 +406,7 @@ int board_late_init(void)
setenv("hdmimode", "1024x600p60hz");
setenv("outputmode", "1024x600p60hz");
} else {
- printf(" lt8619c hdmi_to_lcd device not found.!\n");
+ printf("lt8619c hdmi_to_lcd device not found.!\n");
}
#endif
setenv("variant", board_is_odroidc4() ? "c4" : "hc4");
diff --git a/drivers/i2c/aml_i2c.c b/drivers/i2c/aml_i2c.c
index ad976d0bc9..5960245b43 100644
--- a/drivers/i2c/aml_i2c.c
+++ b/drivers/i2c/aml_i2c.c
@@ -520,8 +520,8 @@ int aml_i2c_xfer(struct i2c_msg *msgs,
if (ret == 0)
return num;
else {
- printf("[aml_i2c_xfer] error ret = %d \t", ret);
- printf("i2c master %s current slave addr is 0x%x\n",
+ AML_I2C_DBG(1, "[aml_i2c_xfer] error ret = %d \t", ret);
+ AML_I2C_DBG(1, "i2c master %s current slave addr is 0x%x\n",
i2c->master_no?"a":"b", i2c->cur_slave_addr);
return ret;
}