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

2013-01-23 Thread Prabhakar Kushwaha
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_

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

2013-01-23 Thread Andy Fleming
> > +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 boar

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

2013-01-14 Thread Prabhakar Kushwaha
QIXIS FPGA is accessable via both i2c and flash controller. Only flash controller access is supported. Add support of i2c based access. It is quite useful in the scenario where either flash controller path is broken or not present. Signed-off-by: Ruchika Gupta Signed-off-by: Prabhakar Kushwaha