aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2010-05-28 09:31:53 +0530
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:45:26 -0600
commitcd3be3d88881595834cd9576b0154789fbeaace5 (patch)
tree3f39d9c35a77cbea3a943dda906be96eb2955693
parent5d3f6b387faafb9690a891f99d5ea050963eb3d7 (diff)
downloadlinux-2.6.34-ux500-cd3be3d88881595834cd9576b0154789fbeaace5.tar.gz
ux500: fix i2c clock on 8500ed
295b32e3 ("Fix for i2c clock to get 400Khz") caused I2C to stop working on ED. Fix it by correcting the I2C master clock rate to 48Mhz on ED. ST-Ericsson ID: ER262251 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: Idb44220386fb836640a3f1fc8135cd2f3c9f95aa Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2356 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
-rwxr-xr-xarch/arm/mach-ux500/clock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/clock.c b/arch/arm/mach-ux500/clock.c
index 30f08044061..6be3833e798 100755
--- a/arch/arm/mach-ux500/clock.c
+++ b/arch/arm/mach-ux500/clock.c
@@ -687,6 +687,7 @@ int __init clk_init(void)
if (cpu_is_u8500ed()) {
clk_prcmu_ops.enable = clk_prcmu_ed_enable;
clk_prcmu_ops.disable = clk_prcmu_ed_disable;
+ clk_i2cclk.rate = 48000000;
} else if (cpu_is_u8500v1()) {
void __iomem *sdmmclkmgt = __io_address(U8500_PRCMU_BASE)
+ PRCM_SDMMCCLK_MGT;