aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libmtd.c2
-rw-r--r--lib/libmtd_legacy.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/libmtd.c b/lib/libmtd.c
index 654490e..3e8109a 100644
--- a/lib/libmtd.c
+++ b/lib/libmtd.c
@@ -403,6 +403,8 @@ static int type_str2int(const char *str)
{
if (!strcmp(str, "nand"))
return MTD_NANDFLASH;
+ if (!strcmp(str, "mlc-nand"))
+ return MTD_MLCNANDFLASH;
if (!strcmp(str, "nor"))
return MTD_NORFLASH;
if (!strcmp(str, "rom"))
diff --git a/lib/libmtd_legacy.c b/lib/libmtd_legacy.c
index 1ae9946..233a92e 100644
--- a/lib/libmtd_legacy.c
+++ b/lib/libmtd_legacy.c
@@ -322,6 +322,9 @@ int legacy_get_dev_info(const char *node, struct mtd_dev_info *mtd)
case MTD_NANDFLASH:
strcpy((char *)mtd->type_str, "nand");
break;
+ case MTD_MLCNANDFLASH:
+ strcpy((char *)mtd->type_str, "mlc-nand");
+ break;
case MTD_DATAFLASH:
strcpy((char *)mtd->type_str, "dataflash");
break;