diff mbox

[U-Boot] powerpc/mpc85xx: Fix the I2C bus speed error on p1022

Message ID 1378435540-14717-1-git-send-email-Yuantian.Tang@freescale.com
State Awaiting Upstream
Delegated to: Heiko Schocher
Headers show

Commit Message

tang yuantian Sept. 6, 2013, 2:45 a.m. UTC
From: Tang Yuantian <yuantian.tang@freescale.com>

The source clock frequency of I2C bus on p1022 is the platform(CCB)
clock, not CCB/2. The wrong source clock frequency leads to wrong
I2C bus speed setting. so, fixed it.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
---
fix bug: ENGR00274019

 arch/powerpc/cpu/mpc85xx/speed.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Heiko Schocher Sept. 9, 2013, 5:47 a.m. UTC | #1
Hello Yuantian.Tang@freescale.com,

Am 06.09.2013 04:45, schrieb Yuantian.Tang@freescale.com:
> From: Tang Yuantian<yuantian.tang@freescale.com>
>
> The source clock frequency of I2C bus on p1022 is the platform(CCB)
> clock, not CCB/2. The wrong source clock frequency leads to wrong
> I2C bus speed setting. so, fixed it.
>
> Signed-off-by: Tang Yuantian<Yuantian.Tang@freescale.com>
> ---
> fix bug: ENGR00274019
>
>   arch/powerpc/cpu/mpc85xx/speed.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)

Applied to u-boot-i2c.git

Thanks!

bye,
Heiko
diff mbox

Patch

diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c
index 65cc7c0..75c92cc 100644
--- a/arch/powerpc/cpu/mpc85xx/speed.c
+++ b/arch/powerpc/cpu/mpc85xx/speed.c
@@ -415,7 +415,8 @@  int get_clocks (void)
 	 * AN2919.
 	 */
 #if defined(CONFIG_MPC8540) || defined(CONFIG_MPC8541) || \
-	defined(CONFIG_MPC8560) || defined(CONFIG_MPC8555)
+	defined(CONFIG_MPC8560) || defined(CONFIG_MPC8555) || \
+	defined(CONFIG_P1022)
 	gd->arch.i2c1_clk = sys_info.freq_systembus;
 #elif defined(CONFIG_MPC8544)
 	/*