powerpc/mpc85xx: Fix the I2C bus speed error on p1022
authorTang Yuantian <yuantian.tang@freescale.com>
Fri, 6 Sep 2013 02:45:40 +0000 (10:45 +0800)
committerHeiko Schocher <hs@denx.de>
Mon, 9 Sep 2013 05:44:27 +0000 (07:44 +0200)
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>
arch/powerpc/cpu/mpc85xx/speed.c

index 07690f97b16a9ca9e2095233b65f60c4c23ff364..4b8d928956afdfe26cffba7fd4d9d02c6c0146bb 100644 (file)
@@ -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)
        /*