developer | 41370d5 | 2022-03-16 16:01:59 +0800 | [diff] [blame] | 1 | From a7e5daccc310c3b892ae5e598cadb7a9274c2547 Mon Sep 17 00:00:00 2001 |
| 2 | From: Shivamurthy Shastri <sshivamurthy@micron.com> |
| 3 | Date: Wed, 11 Mar 2020 18:57:34 +0100 |
| 4 | Subject: [PATCH] mtd: spinand: micron: Add M70A series Micron SPI NAND devices |
| 5 | |
| 6 | Add device table for M70A series Micron SPI NAND devices. |
| 7 | |
| 8 | Signed-off-by: Shivamurthy Shastri <sshivamurthy@micron.com> |
| 9 | Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> |
| 10 | Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> |
| 11 | Link: https://lore.kernel.org/linux-mtd/20200311175735.2007-6-sshivamurthy@micron.com |
| 12 | --- |
| 13 | drivers/mtd/nand/spi/micron.c | 22 ++++++++++++++++++++++ |
| 14 | 1 file changed, 22 insertions(+) |
| 15 | |
| 16 | diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c |
| 17 | index 956f7710aca263..d6fd630087822c 100644 |
| 18 | --- a/drivers/mtd/nand/spi/micron.c |
| 19 | +++ b/drivers/mtd/nand/spi/micron.c |
| 20 | @@ -137,6 +137,28 @@ static const struct spinand_info micron_spinand_table[] = { |
| 21 | 0, |
| 22 | SPINAND_ECCINFO(µn_8_ooblayout, |
| 23 | micron_8_ecc_get_status)), |
| 24 | + /* M70A 4Gb 3.3V */ |
| 25 | + SPINAND_INFO("MT29F4G01ABAFD", |
| 26 | + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x34), |
| 27 | + NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1), |
| 28 | + NAND_ECCREQ(8, 512), |
| 29 | + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, |
| 30 | + &write_cache_variants, |
| 31 | + &update_cache_variants), |
| 32 | + SPINAND_HAS_CR_FEAT_BIT, |
| 33 | + SPINAND_ECCINFO(µn_8_ooblayout, |
| 34 | + micron_8_ecc_get_status)), |
| 35 | + /* M70A 4Gb 1.8V */ |
| 36 | + SPINAND_INFO("MT29F4G01ABBFD", |
| 37 | + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x35), |
| 38 | + NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1), |
| 39 | + NAND_ECCREQ(8, 512), |
| 40 | + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, |
| 41 | + &write_cache_variants, |
| 42 | + &update_cache_variants), |
| 43 | + SPINAND_HAS_CR_FEAT_BIT, |
| 44 | + SPINAND_ECCINFO(µn_8_ooblayout, |
| 45 | + micron_8_ecc_get_status)), |
| 46 | }; |
| 47 | |
| 48 | static int micron_spinand_init(struct spinand_device *spinand) |