Message ID | 20180619053125.16792-5-chris.packham@alliedtelesis.co.nz |
---|---|
State | Rejected |
Delegated to: | Miquel Raynal |
Headers | show |
Series | mtd: rawnand: support MT29F1G08ABAFAWP-ITE:F | expand |
diff --git a/drivers/mtd/nand/raw/marvell_nand.c b/drivers/mtd/nand/raw/marvell_nand.c index ba6889bbe802..96aee8ffd408 100644 --- a/drivers/mtd/nand/raw/marvell_nand.c +++ b/drivers/mtd/nand/raw/marvell_nand.c @@ -217,6 +217,7 @@ static const struct marvell_hw_ecc_layout marvell_nfc_layouts[] = { MARVELL_LAYOUT( 512, 512, 1, 1, 1, 512, 8, 8, 0, 0, 0), MARVELL_LAYOUT( 2048, 512, 1, 1, 1, 2048, 40, 24, 0, 0, 0), MARVELL_LAYOUT( 2048, 512, 4, 1, 1, 2048, 32, 30, 0, 0, 0), + MARVELL_LAYOUT( 2048, 512, 8, 2, 1, 1024, 0, 30, 1024, 32, 30), 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), };
The MT29F1G08ABAFAWP-ITE:F chip has 2048 byte pages and requires a minimum ECC strength of 8-bits. Allow for this combination of requirements using the marvell_nand controller. Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> --- I've tried to follow the recommended AN-379 from Marvell. They do seem to have information that covers this particular set of chip requirements. As discussed I don't think my particular configuration will be supported with this change due to the conflict with the on-die ECC. But this may be useful for others so I've left it in. Changes in v2: - update as suggested by miquel drivers/mtd/nand/raw/marvell_nand.c | 1 + 1 file changed, 1 insertion(+)