memcpy(&sendBuf[2], &data[pos], wlen);
/* Send to EEPROM through iic bus */
memcpy(&sendBuf[2], &data[pos], wlen);
/* Send to EEPROM through iic bus */
- XIic_Send(XPAR_IIC_0_BASEADDR, CFG_I2C_EEPROM_ADDR >> 1, address,
+ XIic_Send(XPAR_IIC_0_BASEADDR, CONFIG_SYS_I2C_EEPROM_ADDR >> 1, address,
- XIic_Recv(XPAR_IIC_0_BASEADDR, CFG_I2C_EEPROM_ADDR >> 1, data, len);
+ XIic_Recv(XPAR_IIC_0_BASEADDR, CONFIG_SYS_I2C_EEPROM_ADDR >> 1, data, len);
receive(addr, buffer, len);
/* found two null chars, end of env */
receive(addr, buffer, len);
/* found two null chars, end of env */
/* update EEPROM env values if there is enough space */
if (update_crc(len, (uchar *)eprom) == 0)
/* update EEPROM env values if there is enough space */
if (update_crc(len, (uchar *)eprom) == 0)
/* then read out EEPROM content for runtime u-boot CRC calculation */
receive(addr, buffer, len);
/* then read out EEPROM content for runtime u-boot CRC calculation */
receive(addr, buffer, len);
/* calling env_relocate(), but don't read out
crc value from EEPROM */
receive(addr, buffer + 4, len);
/* calling env_relocate(), but don't read out
crc value from EEPROM */
receive(addr, buffer + 4, len);
i2c_write(uchar chip, uint addr, int alen, uchar * buffer, int len)
{
/* save env on last page write called by u-boot */
i2c_write(uchar chip, uint addr, int alen, uchar * buffer, int len)
{
/* save env on last page write called by u-boot */