developer | 41370d5 | 2022-03-16 16:01:59 +0800 | [diff] [blame] | 1 | From a15335a17f4abf48ed9739c3b119232f9392cb60 Mon Sep 17 00:00:00 2001 |
| 2 | From: Shivamurthy Shastri <sshivamurthy@micron.com> |
| 3 | Date: Wed, 11 Mar 2020 18:57:32 +0100 |
| 4 | Subject: [PATCH] mtd: spinand: micron: Add new Micron SPI NAND devices |
| 5 | |
| 6 | Add device table for M79A and M78A 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-4-sshivamurthy@micron.com |
| 12 | --- |
| 13 | drivers/mtd/nand/spi/micron.c | 33 +++++++++++++++++++++++++++++++++ |
| 14 | 1 file changed, 33 insertions(+) |
| 15 | |
| 16 | diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c |
| 17 | index 4727933c894bc8..26925714a9fbac 100644 |
| 18 | --- a/drivers/mtd/nand/spi/micron.c |
| 19 | +++ b/drivers/mtd/nand/spi/micron.c |
| 20 | @@ -102,6 +102,39 @@ static const struct spinand_info micron_spinand_table[] = { |
| 21 | 0, |
| 22 | SPINAND_ECCINFO(µn_8_ooblayout, |
| 23 | micron_8_ecc_get_status)), |
| 24 | + /* M79A 2Gb 1.8V */ |
| 25 | + SPINAND_INFO("MT29F2G01ABBGD", |
| 26 | + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x25), |
| 27 | + NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 2, 1, 1), |
| 28 | + NAND_ECCREQ(8, 512), |
| 29 | + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, |
| 30 | + &write_cache_variants, |
| 31 | + &update_cache_variants), |
| 32 | + 0, |
| 33 | + SPINAND_ECCINFO(µn_8_ooblayout, |
| 34 | + micron_8_ecc_get_status)), |
| 35 | + /* M78A 1Gb 3.3V */ |
| 36 | + SPINAND_INFO("MT29F1G01ABAFD", |
| 37 | + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x14), |
| 38 | + NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 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 | + 0, |
| 44 | + SPINAND_ECCINFO(µn_8_ooblayout, |
| 45 | + micron_8_ecc_get_status)), |
| 46 | + /* M78A 1Gb 1.8V */ |
| 47 | + SPINAND_INFO("MT29F1G01ABAFD", |
| 48 | + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x15), |
| 49 | + NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1), |
| 50 | + NAND_ECCREQ(8, 512), |
| 51 | + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, |
| 52 | + &write_cache_variants, |
| 53 | + &update_cache_variants), |
| 54 | + 0, |
| 55 | + SPINAND_ECCINFO(µn_8_ooblayout, |
| 56 | + micron_8_ecc_get_status)), |
| 57 | }; |
| 58 | |
| 59 | static const struct spinand_manufacturer_ops micron_spinand_manuf_ops = { |