aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Norris <norris@broadcom.com>2010-07-08 13:50:04 -0700
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-07-18 10:07:44 +0300
commitcee2c11a38fe2c2cc6a7ea1b13c1eea90ac62432 (patch)
tree4c5fe2d6beaa4abfc7a9399685039d6f7ad85764
parente8457f16306ad6e2c8708275bf42b5dfff40fffd (diff)
nanddump: increase max OOB size
Supported OOB and page sizes can now be changed more easily by a macro constant. NAND_MAX_OOBSIZE needed increased to support 218 and 224 byte OOB. Signed-off-by: Brian Norris <norris@broadcom.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--nanddump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nanddump.c b/nanddump.c
index e44ab36..735ae48 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -174,8 +174,10 @@ static void process_options (int argc, char * const argv[])
/*
* Buffers for reading data from flash
*/
-static unsigned char readbuf[4096];
-static unsigned char oobbuf[128];
+#define NAND_MAX_PAGESIZE 4096
+#define NAND_MAX_OOBSIZE 256
+static unsigned char readbuf[NAND_MAX_PAGESIZE];
+static unsigned char oobbuf[NAND_MAX_OOBSIZE];
/*
* Main program