Re: [U-Boot] [PATCH 2/2] fsl: esdhc: support driver model

2016-03-13 Thread Peng Fan
Hi Simon, On Sat, Mar 12, 2016 at 07:51:53PM -0700, Simon Glass wrote: >Hi Peng, > >On 11 March 2016 at 21:21, Peng Fan wrote: >> Hi Simon, >> >> On Fri, Mar 11, 2016 at 05:33:05PM -0700, Simon Glass wrote: >>>Hi Peng, >>> >>>On 10 March 2016 at 01:57, Peng Fan

Re: [U-Boot] [PATCH 2/2] fsl: esdhc: support driver model

2016-03-12 Thread Simon Glass
Hi Peng, On 11 March 2016 at 21:21, Peng Fan wrote: > Hi Simon, > > On Fri, Mar 11, 2016 at 05:33:05PM -0700, Simon Glass wrote: >>Hi Peng, >> >>On 10 March 2016 at 01:57, Peng Fan wrote: >>> Support Driver Model for fsl esdhc driver. >>> >>> In

Re: [U-Boot] [PATCH 2/2] fsl: esdhc: support driver model

2016-03-11 Thread Peng Fan
Hi Simon, On Fri, Mar 11, 2016 at 05:33:05PM -0700, Simon Glass wrote: >Hi Peng, > >On 10 March 2016 at 01:57, Peng Fan wrote: >> Support Driver Model for fsl esdhc driver. >> >> In order to minimize the change, reuse the fsl_esdhc_initialize function. >> This new way is

Re: [U-Boot] [PATCH 2/2] fsl: esdhc: support driver model

2016-03-11 Thread Simon Glass
Hi Peng, On 10 March 2016 at 01:57, Peng Fan wrote: > Support Driver Model for fsl esdhc driver. > > In order to minimize the change, reuse the fsl_esdhc_initialize function. > This new way is to fill an fsl_esdhc_cfg struture and pass it > to fsl_esdhc_initialize, just

[U-Boot] [PATCH 2/2] fsl: esdhc: support driver model

2016-03-10 Thread Peng Fan
Support Driver Model for fsl esdhc driver. In order to minimize the change, reuse the fsl_esdhc_initialize function. This new way is to fill an fsl_esdhc_cfg struture and pass it to fsl_esdhc_initialize, just like the code in different board codes. Introduce a 'struct mmc *mmc' entry in