[U-Boot-Users] CPM_SPI_BASE and CPM_I2C_BASE conflict in u-boot-1.2.0

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. Someone can confirm that this could be a problem?
Bye, Antonio.

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
participants (2)
-
DI BACCO ANTONIO - technolabs
-
stefano babic