summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc85xx
diff options
context:
space:
mode:
authorTang Yuantian <yuantian.tang@freescale.com>2013-09-06 10:45:40 +0800
committerHeiko Schocher <hs@denx.de>2013-09-09 07:44:27 +0200
commitf62b123813ea604d16ed6115fe2fa552b23d9102 (patch)
tree10d3ec3023d94362cbeca2410dee8456ea297528 /arch/powerpc/cpu/mpc85xx
parent81b867aa4451e745b9706b00e53793df6b52f42a (diff)
downloadu-boot-imx-f62b123813ea604d16ed6115fe2fa552b23d9102.zip
u-boot-imx-f62b123813ea604d16ed6115fe2fa552b23d9102.tar.gz
u-boot-imx-f62b123813ea604d16ed6115fe2fa552b23d9102.tar.bz2
powerpc/mpc85xx: Fix the I2C bus speed error on p1022
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>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx')
-rw-r--r--arch/powerpc/cpu/mpc85xx/speed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c
index 07690f9..4b8d928 100644
--- a/arch/powerpc/cpu/mpc85xx/speed.c
+++ b/arch/powerpc/cpu/mpc85xx/speed.c
@@ -399,7 +399,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)
/*