summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-02-04 17:32:01 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-02-04 17:32:01 +0200
commit9c71d77506e02a5280b516843521d91196cde451 (patch)
tree4a340b502037ec26414170d390fff35c057c2b1e
parentb6cba46406f7058dd003ca1afd837dfc7ed34ce9 (diff)
mtd_debug: support new flags
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--include/mtd/mtd-abi.h1
-rw-r--r--mtd_debug.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index aaae170..86defe1 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -24,6 +24,7 @@ struct mtd_oob_buf {
#define MTD_NORFLASH 3
#define MTD_NANDFLASH 4
#define MTD_DATAFLASH 6
+#define MTD_UBIVOLUME 7
#define MTD_WRITEABLE 0x400 /* Device is writeable */
#define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */
diff --git a/mtd_debug.c b/mtd_debug.c
index b44e952..85d48e9 100644
--- a/mtd_debug.c
+++ b/mtd_debug.c
@@ -272,6 +272,8 @@ int showinfo (int fd)
case MTD_DATAFLASH:
printf ("MTD_DATAFLASH");
break;
+ case MTD_UBIVOLUME:
+ printf ("MTD_UBIVOLUME");
default:
printf ("(unknown type - new MTD API maybe?)");
}
@@ -298,6 +300,8 @@ int showinfo (int fd)
{
{ "MTD_WRITEABLE", MTD_WRITEABLE },
{ "MTD_BIT_WRITEABLE", MTD_BIT_WRITEABLE },
+ { "MTD_NO_ERASE", MTD_NO_ERASE },
+ { "MTD_STUPID_LOCK", MTD_STUPID_LOCK },
{ NULL, -1 }
};
for (i = 0; flags[i].name != NULL; i++)