[1/1] mtd: nand: Add Dosilicon manufacturer id

Message ID 20240107123020.22053-1-amadeus@jmu.edu.cn
State New
Headers
Series [1/1] mtd: nand: Add Dosilicon manufacturer id |

Commit Message

Chukun Pan Jan. 7, 2024, 12:30 p.m. UTC
  Add Dosilicon manufacturer id.
Tested on Dosilicon FMND1G08S3D.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
---
 drivers/mtd/nand/raw/internals.h | 1 +
 drivers/mtd/nand/raw/nand_ids.c  | 1 +
 2 files changed, 2 insertions(+)
  

Patch

diff --git a/drivers/mtd/nand/raw/internals.h b/drivers/mtd/nand/raw/internals.h
index b7162ced9efa..e94788597a72 100644
--- a/drivers/mtd/nand/raw/internals.h
+++ b/drivers/mtd/nand/raw/internals.h
@@ -18,6 +18,7 @@ 
  */
 #define NAND_MFR_AMD		0x01
 #define NAND_MFR_ATO		0x9b
+#define NAND_MFR_DOSILICON	0xf8
 #define NAND_MFR_EON		0x92
 #define NAND_MFR_ESMT		0xc8
 #define NAND_MFR_FUJITSU	0x04
diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd/nand/raw/nand_ids.c
index 650351c62af6..54e07e148c6e 100644
--- a/drivers/mtd/nand/raw/nand_ids.c
+++ b/drivers/mtd/nand/raw/nand_ids.c
@@ -181,6 +181,7 @@  struct nand_flash_dev nand_flash_ids[] = {
 static const struct nand_manufacturer_desc nand_manufacturer_descs[] = {
 	{NAND_MFR_AMD, "AMD/Spansion", &amd_nand_manuf_ops},
 	{NAND_MFR_ATO, "ATO"},
+	{NAND_MFR_DOSILICON, "Dosilicon"},
 	{NAND_MFR_EON, "Eon"},
 	{NAND_MFR_ESMT, "ESMT", &esmt_nand_manuf_ops},
 	{NAND_MFR_FUJITSU, "Fujitsu"},