projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71f6717
)
rk30:set i2c clk 200k in i2c_sram.c
author
张晴
<zhangqing@rock-chips.com>
Sat, 29 Sep 2012 06:56:23 +0000
(14:56 +0800)
committer
张晴
<zhangqing@rock-chips.com>
Sat, 29 Sep 2012 06:56:23 +0000
(14:56 +0800)
arch/arm/mach-rk30/i2c_sram.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk30/i2c_sram.c
b/arch/arm/mach-rk30/i2c_sram.c
index 21537c85d301b7ac01d20f962de3d5c4f539878b..e91ed63b66bf392cc2e15944ff79f2ed7b60622e 100755
(executable)
--- a/
arch/arm/mach-rk30/i2c_sram.c
+++ b/
arch/arm/mach-rk30/i2c_sram.c
@@
-143,8
+143,8
@@
void __sramfunc sram_i2c_init()
data[2] = readl_relaxed(RK30_GRF_BASE + GRF_GPIO_IOMUX);
writel_relaxed(data[2]| I2C_GRF_GPIO_IOMUX, RK30_GRF_BASE + GRF_GPIO_IOMUX);
- div =
rk30_ceil(24*1000*1000, I2C_SPEED*1000 * 8)
;
- divh = divl =
rk30_ceil(div, 2);
+ div =
0x1e
;
+ divh = divl =
0xf;
writel_relaxed(I2C_CLKDIV_VAL(divl, divh), SRAM_I2C_ADDRBASE + I2C_CLKDIV);
data[3] = readl_relaxed(SRAM_I2C_ADDRBASE + I2C_CLKDIV);