commit | bbc1fc5a1cb2ca16c6b4f6517716c226460152f3 | [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 | 00ef2727e3f21c4edbd055acc6b6d37f799280bc [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>