[U-Boot] [PATCH] board/common: Add support for QIXIS read/write using i2c

Prabhakar Kushwaha prabhakar at freescale.com
Thu Jan 24 04:28:24 CET 2013


On 01/24/2013 03:36 AM, Andy Fleming wrote:
>
>
>     +u8 qixis_read_i2c(unsigned int reg)
>     +{
>     +       return i2c_reg_read(CONFIG_SYS_I2C_FPGA_ADDR, reg);
>     +}
>     +
>     +void qixis_write_i2c(unsigned int reg, u8 value)
>     +{
>     +       u8 val = value;
>     +       i2c_reg_write(CONFIG_SYS_I2C_FPGA_ADDR, reg, val);
>     +}
>     +
>
>
>
> This breaks ALL other boards with QIXIS, as they don't all define 
> CONFIG_SYS_I2C_FPGA_ADDR.

oh..
Then, I will put this code under #ifdef CONFIG_SYS_I2C_FPGA_ADDR and 
provide v2 version of this patch.

Regards,
Prabhakar



More information about the U-Boot mailing list