Again.
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
};
#define MTD_ABSENT 0
-#define MTD_RAM 1
-#define MTD_ROM 2
#define MTD_NORFLASH 3
#define MTD_NANDFLASH 4
#define MTD_DATAFLASH 6
+#define MTD_GENERIC_TYPE 7
#define MTD_WRITEABLE 0x400 /* Device is writeable */
#define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */
+#define MTD_NO_ERASE 0x1000 /* No erase necessary */
// Some common devices / combinations of capabilities
#define MTD_CAP_ROM 0
-#define MTD_CAP_RAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE)
+#define MTD_CAP_RAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE | MTD_NO_ERASE)
#define MTD_CAP_NORFLASH (MTD_WRITEABLE | MTD_BIT_WRITEABLE)
#define MTD_CAP_NANDFLASH (MTD_WRITEABLE)
case MTD_ABSENT:
printf ("MTD_ABSENT");
break;
- case MTD_RAM:
- printf ("MTD_RAM");
- break;
- case MTD_ROM:
- printf ("MTD_ROM");
- break;
case MTD_NORFLASH:
printf ("MTD_NORFLASH");
break;
case MTD_NANDFLASH:
printf ("MTD_NANDFLASH");
break;
+ case MTD_GENERIC_TYPE:
+ printf ("MTD_GENERIC_TYPE");
+ break;
default:
printf ("(unknown type - new MTD API maybe?)");
}