
27 Aug
2007
27 Aug
'07
2:53 p.m.
DI BACCO ANTONIO - technolabs wrote:
In include/commproc.h CPM_I2C_BASE is set to 0x820 and CPM_SPI_BASE is set 0x840, but in cpu/mpc8xx/i2c.c 4 TX and 4 RX i2c buffers (each of 8 bytes) are declared. I believe this causes a problem when issueing an SPI command after and I2C one.
I see, I think you are right. By the way, what do you think about using CFG_ALLOC_DPRAM in your config file ? This setup allocates dynamically the required buffer descriptors avoiding conflicts inside MPC8xx dpram.
Best regards, stefano babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de
=====================================================================