From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Date: Thu, 28 Aug 2003 12:42:09 +0300 Subject: [U-Boot-Users] i2c for mpc107 bridge Message-ID: <20030828094209.GA9003@nbase.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, I tried to use I2C driver from cpu/mpc824x/drivers/i2c/ before relocation to ram (to read SDRAM eeprom actually). This doesn't work for me. I think this is because Motorola driver uses static variables and this can't work from flash. I wrote my own simple driver (attached) that does work from flash. May be somebody needs it :) -- Gleb. -------------- next part -------------- A non-text attachment was scrubbed... Name: i2c.c Type: text/x-csrc Size: 5261 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20030828/b2dd28a2/attachment.c