developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 1 | From 66ea40f7c5b196eee609c5e3322aac3a7ac59e03 Mon Sep 17 00:00:00 2001 |
| 2 | From: Sam Shih <sam.shih@mediatek.com> |
| 3 | Date: Fri, 2 Jun 2023 13:06:12 +0800 |
| 4 | Subject: [PATCH] |
| 5 | [spi-and-storage][999-2320-mtd-spinand-micron-Add-new-Micron-SPI-NAND-devices.patch] |
developer | 41370d5 | 2022-03-16 16:01:59 +0800 | [diff] [blame] | 6 | |
developer | 41370d5 | 2022-03-16 16:01:59 +0800 | [diff] [blame] | 7 | --- |
| 8 | drivers/mtd/nand/spi/micron.c | 33 +++++++++++++++++++++++++++++++++ |
| 9 | 1 file changed, 33 insertions(+) |
| 10 | |
| 11 | diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 12 | index 4727933c8..26925714a 100644 |
developer | 41370d5 | 2022-03-16 16:01:59 +0800 | [diff] [blame] | 13 | --- a/drivers/mtd/nand/spi/micron.c |
| 14 | +++ b/drivers/mtd/nand/spi/micron.c |
| 15 | @@ -102,6 +102,39 @@ static const struct spinand_info micron_spinand_table[] = { |
| 16 | 0, |
| 17 | SPINAND_ECCINFO(µn_8_ooblayout, |
| 18 | micron_8_ecc_get_status)), |
| 19 | + /* M79A 2Gb 1.8V */ |
| 20 | + SPINAND_INFO("MT29F2G01ABBGD", |
| 21 | + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x25), |
| 22 | + NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 2, 1, 1), |
| 23 | + NAND_ECCREQ(8, 512), |
| 24 | + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, |
| 25 | + &write_cache_variants, |
| 26 | + &update_cache_variants), |
| 27 | + 0, |
| 28 | + SPINAND_ECCINFO(µn_8_ooblayout, |
| 29 | + micron_8_ecc_get_status)), |
| 30 | + /* M78A 1Gb 3.3V */ |
| 31 | + SPINAND_INFO("MT29F1G01ABAFD", |
| 32 | + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x14), |
| 33 | + NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1), |
| 34 | + NAND_ECCREQ(8, 512), |
| 35 | + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, |
| 36 | + &write_cache_variants, |
| 37 | + &update_cache_variants), |
| 38 | + 0, |
| 39 | + SPINAND_ECCINFO(µn_8_ooblayout, |
| 40 | + micron_8_ecc_get_status)), |
| 41 | + /* M78A 1Gb 1.8V */ |
| 42 | + SPINAND_INFO("MT29F1G01ABAFD", |
| 43 | + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x15), |
| 44 | + NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1), |
| 45 | + NAND_ECCREQ(8, 512), |
| 46 | + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, |
| 47 | + &write_cache_variants, |
| 48 | + &update_cache_variants), |
| 49 | + 0, |
| 50 | + SPINAND_ECCINFO(µn_8_ooblayout, |
| 51 | + micron_8_ecc_get_status)), |
| 52 | }; |
| 53 | |
| 54 | static const struct spinand_manufacturer_ops micron_spinand_manuf_ops = { |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 55 | -- |
| 56 | 2.34.1 |
| 57 | |