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

2015-05-15 Thread Simon Glass
On 14 May 2015 at 17:29, Peng Fan peng@freescale.com 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

[U-Boot] [PATCH V5 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