summaryrefslogtreecommitdiff
path: root/lib/libmtd_legacy.c
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2013-08-20 13:58:34 +0800
committerBrian Norris <computersforpeace@gmail.com>2013-10-22 16:17:52 -0700
commit2e4fe96b2bc5ad33793d0d5cbeb23c9f76155211 (patch)
tree1be06adf1edcb05e6bb49801a15fd1a42e8bb8fd /lib/libmtd_legacy.c
parentab8c6fb93ce9db0f09401c4b819b0b277dc00340 (diff)
add the MTD_MLCNANDFLASH case
The MTD_MLCNANDFLASH case is missed in the current code. This patch adds it. Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'lib/libmtd_legacy.c')
-rw-r--r--lib/libmtd_legacy.c3
1 files changed, 3 insertions, 0 deletions
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;