From: Steven Scholz Date: Fri, 11 Apr 2003 14:44:51 +0200 Subject: [U-Boot-Users] Problems with MPC8xx I2C (RTC) References: <3E969B91.2040206@imc-berlin.de> Message-ID: <3E96B8C3.2010600@imc-berlin.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de I wrote: > I am using u-boot-0.3.0, linuxppc-2.4.20 and a DS1338 I2C RTC with > MPC8xx CPM I2C (CONFIG_HARD_I2C and i2c-algo-8xx). > > To avoid the discribed I2C edge condition I changed u-boot form HARD to > SOFT_I2C. Now when booting linux I get: > ... I just cut & pasted the code from i2c-rpc.c. Apparently the lines /* Check for and use a microcode relocation patch. */ if ((data->reloc = data->iip->iic_rpbase)) data->iip = (iic_t *)&cp->cp_dpmem[data->iip->iic_rpbase]; caused the problem! Since I don't use the I added a #ifdef USE_IIC_PATCH around this line just like DENX did in their i2c-r360.c. Now everything seems to be fine again! :o) So sorry for the noise! But again: What do I need the UCODE_PATCH for? Thanks, Steven