ppc4xx: Fix problem with I2C bus >= 1 initialization
authorStefan Roese <sr@denx.de>
Mon, 29 Mar 2010 13:30:46 +0000 (15:30 +0200)
committerStefan Roese <sr@denx.de>
Tue, 30 Mar 2010 11:05:05 +0000 (13:05 +0200)
commit1a332da61df9c38b567359af114daeaaaefaead8
treee1e00a5055162beab62f14b4a2b7e3016eeef333
parent060f28532b09dd3d2c78423bdd809ac768a27629
ppc4xx: Fix problem with I2C bus >= 1 initialization

This patch fixes a problem introduced with patch eb5eb2b0
[ppc4xx: Cleanup PPC4xx I2C infrastructure]. We need to assign the I2C
base address to the "i2c" pointer inside of the controller loop.
Otherwise controller 0 is initialized multiple times instead of
initializing each I2C controller sequentially.

Tested on Katmai.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
cpu/ppc4xx/i2c.c