Re: [PATCH] mtd: brcmnand: Add v7.2 controller support

2016-05-28 Thread Thomas Petazzoni
Hello, On Fri, 27 May 2016 14:58:11 -0700, Florian Fainelli wrote: > + if (ctrl->nand_version >= 0x0702) > + bits = 7; > if (ctrl->nand_version >= 0x0600) Don't you want an "else if" here ? Otherwise, even for the 7.2 version of your controller bits will be set to 1. Ditt

[PATCH] mtd: brcmnand: Add v7.2 controller support

2016-05-27 Thread Florian Fainelli
The 7.2 controller differs in a few area compared to its predecssor (7.1): - NAND scrambler, which we are not using just yet - higher ECC levels (up to 120 bits) per 1KB data blocks, also not supported yet - up to 128B OOB This patchs adds the ncessary code to support such a controller generation