[U-Boot] [PATCH v2] powerpc/c29xpcie: Getting DDR SPD image from 16-bit sub-address EEPROM

Timur Tabi timur at tabi.org
Sun Sep 22 14:55:56 CEST 2013


On Sat, Sep 21, 2013 at 8:31 PM, Po Liu <Po.Liu at freescale.com> wrote:

> +void get_spd(generic_spd_eeprom_t *spd, u8 i2c_address)
> +{
> +       int ret = i2c_read(i2c_address, 0, 2, (uchar *)spd,

(uchar) is wrong.

int i2c_read(uint8_t chip, unsigned int addr, int alen,
                                 uint8_t *buffer, int len);

The type for this parameter is uint8_t.

The proper fix is to change the i2c_read() function should be changed
to take a void*.


More information about the U-Boot mailing list