Skip to content
Snippets Groups Projects
Commit 42653b82 authored by Kumar Gala's avatar Kumar Gala Committed by Wolfgang Denk
Browse files

Revert "85xx: Using proper I2C source clock divider for MPC8544"


This reverts commit dffd2446.

The fix introduced by this patch is not correct.  The problem is
that the documentation is not correct for the MPC8544 with regards
to which bit in PORDEVSR2 is for the SEC_CFG.

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent c794c670
No related branches found
No related tags found
No related merge requests found
...@@ -102,9 +102,9 @@ int get_clocks (void) ...@@ -102,9 +102,9 @@ int get_clocks (void)
* PORDEVSR2_SEC_CFG bit is 0 on all 85xx boards that are not an 8544. * PORDEVSR2_SEC_CFG bit is 0 on all 85xx boards that are not an 8544.
*/ */
if (gur->pordevsr2 & MPC85xx_PORDEVSR2_SEC_CFG) if (gur->pordevsr2 & MPC85xx_PORDEVSR2_SEC_CFG)
gd->i2c1_clk = sys_info.freqSystemBus / 2;
else
gd->i2c1_clk = sys_info.freqSystemBus / 3; gd->i2c1_clk = sys_info.freqSystemBus / 3;
else
gd->i2c1_clk = sys_info.freqSystemBus / 2;
#else #else
/* Most 85xx SOCs use CCB/2, so this is the default behavior. */ /* Most 85xx SOCs use CCB/2, so this is the default behavior. */
gd->i2c1_clk = sys_info.freqSystemBus / 2; gd->i2c1_clk = sys_info.freqSystemBus / 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment