public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] powerpc/mpc85xx: Fix the I2C bus speed error on p1022
@ 2013-09-06  2:45 Yuantian.Tang at freescale.com
  2013-09-09  5:47 ` Heiko Schocher
  0 siblings, 1 reply; 2+ messages in thread
From: Yuantian.Tang at freescale.com @ 2013-09-06  2:45 UTC (permalink / raw)
  To: u-boot

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(-)

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)
 	/*
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] powerpc/mpc85xx: Fix the I2C bus speed error on p1022
  2013-09-06  2:45 [U-Boot] [PATCH] powerpc/mpc85xx: Fix the I2C bus speed error on p1022 Yuantian.Tang at freescale.com
@ 2013-09-09  5:47 ` Heiko Schocher
  0 siblings, 0 replies; 2+ messages in thread
From: Heiko Schocher @ 2013-09-09  5:47 UTC (permalink / raw)
  To: u-boot

Hello Yuantian.Tang at freescale.com,

Am 06.09.2013 04:45, schrieb Yuantian.Tang at 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
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-09  5:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06  2:45 [U-Boot] [PATCH] powerpc/mpc85xx: Fix the I2C bus speed error on p1022 Yuantian.Tang at freescale.com
2013-09-09  5:47 ` Heiko Schocher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox