powerpc/mpc85xx: Fix the I2C bus speed error on p1022
PATCH 1/1 powerpc/mpc85xx: Fix the I2C bus speed error on p1022
From: Tang Yuantian <[email protected]>
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 <[email protected]>
---
fix bug: ENGR00274019
arch/powerpc/cpu/mpc85xx/speed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/cpu/mpc85xx/speed.c +2 -1
@@ -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 )/*
Signature · 1 line
1.8.0
PATCH 1/1 powerpc/mpc85xx: Fix the I2C bus speed error on p1022
Hello Yuantian.Tang at freescale.com,
Am 06.09.2013 04:45, schrieb Yuantian.Tang at freescale.com:
Quoted 6 lines
From: Tang Yuantian<[email protected]>
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.
Quoted 6 lines
Signed-off-by Tang Yuantian<[email protected]>---
fix bug: ENGR00274019arch/powerpc/cpu/mpc85xx/speed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to u-boot-i2c.git
Thanks!
bye,
Heiko
Signature · 2 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany