[PATCH] [MTD] Utils: Add 1KB page & 32 bytes spare NAND
Kyungmin Park
kmpark at infradead.org
Thu Feb 8 03:06:12 EST 2007
>From 8d5c48ee5369203fed3df8b6b58967d0e63e43a5 Mon Sep 17 00:00:00 2001
From: Kyungmin Park <kyungmin.park at samsung.com>
Date: Thu, 8 Feb 2007 17:04:54 +0900
Subject: [PATCH] [MTD] Utils: Add 1KB page & 32 bytes spare NAND
Some OneNAND chips use this spec.
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
---
nanddump.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/nanddump.c b/nanddump.c
index b2323f6..a8cb378 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -196,6 +196,7 @@ int main(int argc, char **argv)
/* Make sure device page sizes are valid */
if (!(meminfo.oobsize == 64 && meminfo.writesize == 2048) &&
+ !(meminfo.oobsize == 32 && meminfo.writesize == 1024) &&
!(meminfo.oobsize == 16 && meminfo.writesize == 512) &&
!(meminfo.oobsize == 8 && meminfo.writesize == 256)) {
fprintf(stderr, "Unknown flash (not normal NAND)\n");
--
1.4.4.2
More information about the linux-mtd
mailing list