aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@gmail.com>2010-05-03 21:14:39 -0700
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-05-05 14:24:59 +0300
commita15b1a1409721c1d75c1ecaab90bdeca74c26fd4 (patch)
treec26f904a6bac8a66d8255d959889f381540808f2
parent9dd12c96f17b3f016d495f4db27767049b8fcd95 (diff)
nanddump: Support 4096+218 and 4096+224 page sizes
Tested with Samsung K9GAG08U0D. Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--nanddump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nanddump.c b/nanddump.c
index 678d684..ae0e425 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -209,7 +209,9 @@ int main(int argc, char * const argv[])
}
/* Make sure device page sizes are valid */
- if (!(meminfo.oobsize == 128 && meminfo.writesize == 4096) &&
+ if (!(meminfo.oobsize == 224 && meminfo.writesize == 4096) &&
+ !(meminfo.oobsize == 218 && meminfo.writesize == 4096) &&
+ !(meminfo.oobsize == 128 && meminfo.writesize == 4096) &&
!(meminfo.oobsize == 64 && meminfo.writesize == 2048) &&
!(meminfo.oobsize == 32 && meminfo.writesize == 1024) &&
!(meminfo.oobsize == 16 && meminfo.writesize == 512) &&