From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzMNU-0005id-AM for linux-mtd@lists.infradead.org; Mon, 10 Sep 2018 13:37:21 +0000 Date: Mon, 10 Sep 2018 15:36:58 +0200 From: Boris Brezillon To: Miquel Raynal Cc: Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Antoine Tenart , Gregory Clement , Maxime Chevallier , Nadav Haklai , linux-mtd@lists.infradead.org, Thomas Petazzoni , Konstantin Porotchkin , Ofer Heifetz Subject: Re: [PATCH] mtd: rawnand: marvell: Add support for 8kiB pages NAND chips layout Message-ID: <20180910153658.0c1dd6ea@bbrezillon> In-Reply-To: <20180907143436.13391-1-miquel.raynal@bootlin.com> References: <20180907143436.13391-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 7 Sep 2018 16:34:36 +0200 Miquel Raynal wrote: > From: Konstantin Porotchkin > > Add support for two new layouts: 8kiB pages NAND chips, requesting > either 4 or 8 bit of correctability per 512B step. > > Signed-off-by: Konstantin Porotchkin > Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon > --- > drivers/mtd/nand/raw/marvell_nand.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/mtd/nand/raw/marvell_nand.c b/drivers/mtd/nand/raw/marvell_nand.c > index bc2ef5209783..bba7aa80ec61 100644 > --- a/drivers/mtd/nand/raw/marvell_nand.c > +++ b/drivers/mtd/nand/raw/marvell_nand.c > @@ -219,6 +219,8 @@ static const struct marvell_hw_ecc_layout marvell_nfc_layouts[] = { > MARVELL_LAYOUT( 2048, 512, 4, 1, 1, 2048, 32, 30, 0, 0, 0), > MARVELL_LAYOUT( 4096, 512, 4, 2, 2, 2048, 32, 30, 0, 0, 0), > MARVELL_LAYOUT( 4096, 512, 8, 5, 4, 1024, 0, 30, 0, 64, 30), > + MARVELL_LAYOUT( 8192, 512, 4, 4, 4, 2048, 0, 30, 0, 0, 0), > + MARVELL_LAYOUT( 8192, 512, 8, 9, 8, 1024, 0, 30, 0, 160, 30), > }; > > /**