[PATCH] mtd: spinand: Add support for XTX XT26G0xA

Miquel Raynal miquel.raynal at bootlin.com
Thu Apr 7 00:50:34 PDT 2022


gch981213 at gmail.com wrote on Thu, 7 Apr 2022 15:09:43 +0800:

> Hi!
> 
> On Thu, Apr 7, 2022 at 12:20 AM Felix Matouschek <felix at matouschek.org> wrote:
> > The data-sheet says that only offsets 801H to 807H can be used for user
> > data and are not covered by ECC (offset 800H is reserved for the bad
> > block mark).
> >
> > The remaining 16 bytes from offset 830H to 83FH are read-only when ECC
> > is enabled, so they are of no use? Can you please advise if there is
> > something I can change?  
> 
> According to page 30 of the datasheet[0], the 64Byte OOB layout is:
> 8 bytes: OOB not protected by ECC
> 40 bytes: OOB protected by ECC
> 16 bytes: ECC parity data
> 
> so your OOB layout should be:
> ECC:
> region->offset = 48;
> region->length = 16;
> 
> Free:
> /* Reserve 1 byte for the BBM. */
> region->offset = 1;
> region->length = 47;
> 
> [0]: https://pese.oss-cn-shenzhen.aliyuncs.com/pdfs/2005251034_XTX-XT26G01AWSEGA_C558841.pdf

Agreed!

Thanks,
Miquèl



More information about the linux-mtd mailing list