ppc4xx: Fix i2c divisor calcularion for PPC4xx
authorJeffrey Mann <mannj@embeddedplanet.com>
Thu, 12 Apr 2007 12:15:59 +0000 (14:15 +0200)
committerStefan Roese <sr@denx.de>
Thu, 12 Apr 2007 12:15:59 +0000 (14:15 +0200)
commit2ad3aba01d37b72e7c957b07e102fccd64fe6d13
treea97f1aadb17333df38b229fec9be6e1df972315c
parente8aac8e7bfc7cfdef5780f8f1d4c85184f59a06f
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>
cpu/ppc4xx/i2c.c