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

Felix Matouschek felix at matouschek.org
Fri Apr 8 09:22:48 PDT 2022


Hi!

Thank you for your guidance! I posted a v2.

Regards,
Felix

Am 07.04.22 um 09:09 schrieb Chuanhong Guo:
> 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



More information about the linux-mtd mailing list