Re: [U-Boot] [PATCH V4 1/2] i2c: mxc: refactor i2c driver and support dm

2015-05-14 Thread Simon Glass
Hi Peng, On 14 May 2015 at 04:03, Peng Fan wrote: > 1. Introduce a new structure `struct mxc_i2c_bus`, this structure will >used for non-DM and DM. > 2. Remove `struct mxc_i2c_regs` structure, but use register offset to access >registers based on `base` entry of `struct mxc_i2c_bus`. > 3.

[U-Boot] [PATCH V4 1/2] i2c: mxc: refactor i2c driver and support dm

2015-05-14 Thread Peng Fan
1. Introduce a new structure `struct mxc_i2c_bus`, this structure will used for non-DM and DM. 2. Remove `struct mxc_i2c_regs` structure, but use register offset to access registers based on `base` entry of `struct mxc_i2c_bus`. 3. Remove most `#ifdef I2C_QUIRK_REG`. Using driver_data to cont