summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorckkim <changkon12@gmail.com>2022-04-14 08:15:39 +0300
committerChris <codewalker@hardkernel.com>2022-07-19 10:49:34 +0300
commit4e02a10bcc1758486a70b89658bdb5a3f6a7c493 (patch)
treef8993f01050fa5109dae7cca5a2e7345e27eb32a
parentb9675b28bdb93722667ac00a21c7bc5802cec941 (diff)
downloadu-boot-4e02a10bcc1758486a70b89658bdb5a3f6a7c493.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;
}