developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 1 | From 5a4cd6ba8f7ae6744ca44f78c761f26e843c0341 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-2322-mtd-spinand-micron-Add-M70A-series-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 | 22 ++++++++++++++++++++++ |
| 9 | 1 file changed, 22 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 956f7710a..d6fd63008 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 | @@ -137,6 +137,28 @@ static const struct spinand_info micron_spinand_table[] = { |
| 16 | 0, |
| 17 | SPINAND_ECCINFO(µn_8_ooblayout, |
| 18 | micron_8_ecc_get_status)), |
| 19 | + /* M70A 4Gb 3.3V */ |
| 20 | + SPINAND_INFO("MT29F4G01ABAFD", |
| 21 | + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x34), |
| 22 | + NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1), |
| 23 | + NAND_ECCREQ(8, 512), |
| 24 | + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, |
| 25 | + &write_cache_variants, |
| 26 | + &update_cache_variants), |
| 27 | + SPINAND_HAS_CR_FEAT_BIT, |
| 28 | + SPINAND_ECCINFO(µn_8_ooblayout, |
| 29 | + micron_8_ecc_get_status)), |
| 30 | + /* M70A 4Gb 1.8V */ |
| 31 | + SPINAND_INFO("MT29F4G01ABBFD", |
| 32 | + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x35), |
| 33 | + NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 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 | + SPINAND_HAS_CR_FEAT_BIT, |
| 39 | + SPINAND_ECCINFO(µn_8_ooblayout, |
| 40 | + micron_8_ecc_get_status)), |
| 41 | }; |
| 42 | |
| 43 | static int micron_spinand_init(struct spinand_device *spinand) |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 44 | -- |
| 45 | 2.34.1 |
| 46 | |