projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c17bb1
)
i2c: designware_i2c: Fix IC_CON register setting for high speed mode
author
Jun Chen
<jun.chen@vatics.com>
Mon, 2 Mar 2020 08:58:54 +0000
(16:58 +0800)
committer
Heiko Schocher
<hs@denx.de>
Mon, 16 Mar 2020 07:03:53 +0000
(08:03 +0100)
IC_CON[2:1] should be 3 for high speed mode
Signed-off-by: Jun Chen <ptchentw@gmail.com>
Signed-off-by: Jun Chen <jun.chen@vatics.com>
drivers/i2c/designware_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/designware_i2c.c
b/drivers/i2c/designware_i2c.c
index 0b5e70af591cbf031a7eb83a5d416f696f5cfb9d..9186fcb7dc9bdc67f9d874940e26d8da7c8e16ef 100644
(file)
--- a/
drivers/i2c/designware_i2c.c
+++ b/
drivers/i2c/designware_i2c.c
@@
-274,7
+274,7
@@
static int _dw_i2c_set_bus_speed(struct dw_i2c *priv, struct i2c_regs *i2c_base,
switch (config.speed_mode) {
case IC_SPEED_MODE_HIGH:
- cntl |= IC_CON_SPD_
S
S;
+ cntl |= IC_CON_SPD_
H
S;
writel(config.scl_hcnt, &i2c_base->ic_hs_scl_hcnt);
writel(config.scl_lcnt, &i2c_base->ic_hs_scl_lcnt);
break;