commit | 2ad3aba01d37b72e7c957b07e102fccd64fe6d13 | [log] [tgz] |
---|---|---|
author | Jeffrey Mann <mannj@embeddedplanet.com> | Thu Apr 12 14:15:59 2007 +0200 |
committer | Stefan Roese <sr@denx.de> | Thu Apr 12 14:15:59 2007 +0200 |
tree | a97f1aadb17333df38b229fec9be6e1df972315c | |
parent | e8aac8e7bfc7cfdef5780f8f1d4c85184f59a06f [diff] |
ppc4xx: Fix i2c divisor calcularion for PPC4xx This patch fixes changes the i2c_init(...) function to use the function get_OPB_freq() rather than calculating the OPB speed by sysInfo.freqPLB/sysInfo.pllOpbDiv. The get_OPB_freq() function is specific per processor. The prior method was not and so was calculating the wrong speed for some PPC4xx processors. Signed-off-by: Jeffrey Mann <mannj@embeddedplanet.com> Signed-off-by: Stefan Roese <sr@denx.de>