[PATCH v4 2/2] MTD: AT91: Update atmel_nand_data to support PMECC

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Fri Apr 20 05:11:48 EDT 2012


On 09:24 Fri 20 Apr     , Xu, Hong wrote:
> 
> 
> > -----Original Message-----
> > From: Jean-Christophe PLAGNIOL-VILLARD [mailto:plagnioj at jcrosoft.com]
> > Sent: Friday, April 20, 2012 4:27 PM
> > To: Xu, Hong
> > Cc: linux-mtd at lists.infradead.org; linux-arm-kernel at lists.infradead.org;
> > dedekind1 at gmail.com; Ferre, Nicolas
> > Subject: Re: [PATCH v4 2/2] MTD: AT91: Update atmel_nand_data to support PMECC
> > 
> > On 15:26 Fri 20 Apr     , Hong Xu wrote:
> > > Added two items,
> > > * correction_cap: PMECC correction capability
> > > * sector_size:    Sector size for PMECC
> > >
> > > Signed-off-by: Hong Xu <hong.xu at atmel.com>
> > > ---
> > >  include/linux/platform_data/atmel.h |    2 ++
> > >  1 file changed, 2 insertions(+)
> > >
> > > diff --git a/include/linux/platform_data/atmel.h
> > b/include/linux/platform_data/atmel.h
> > > index b0f2c56..4d9bfd5 100644
> > > --- a/include/linux/platform_data/atmel.h
> > > +++ b/include/linux/platform_data/atmel.h
> > > @@ -20,6 +20,8 @@ struct atmel_nand_data {
> > >  	u8		bus_width_16;		/* buswidth is 16 bit */
> > >  	u8		ecc_mode;		/* ecc mode */
> > >  	u8		on_flash_bbt;		/* bbt on flash */
> > > +	u8		correction_cap;		/* PMECC capability */
> > > +	u16		sector_size;		/* Sector size for PMECC */
> > as this only used by DT
> > no need to expose it
> > 
> 
> OK, we could put those into struct Atmel_nand_host. But this means PMECC will totally rely on DT.
yes as none of the non dt-only soc use it

Best Regards,
J.



More information about the linux-arm-kernel mailing list