summaryrefslogtreecommitdiff
path: root/src/flash/nand.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-02 21:24:08 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-02 21:24:08 +0000
commit3725fded174dfd019a5ea08ee4936adf7d3acbb2 (patch)
tree51d275f28e83bdd06addb88fe07f2e655a26612a /src/flash/nand.h
parentc3d96a3a6e483f02ab3d57dfd4ead92e54caf1b0 (diff)
downloadopenocd+libswd-3725fded174dfd019a5ea08ee4936adf7d3acbb2.tar.gz
openocd+libswd-3725fded174dfd019a5ea08ee4936adf7d3acbb2.tar.bz2
openocd+libswd-3725fded174dfd019a5ea08ee4936adf7d3acbb2.tar.xz
openocd+libswd-3725fded174dfd019a5ea08ee4936adf7d3acbb2.zip
Nicolas Pitre nico at cam.org The ECC data is automatically computed and written to the OOB area
when the oob_softecc option is passed to the "nand write" command. git-svn-id: svn://svn.berlios.de/openocd/trunk@1446 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/nand.h')
-rw-r--r--src/flash/nand.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/flash/nand.h b/src/flash/nand.h
index 5535221a..bd9554c3 100644
--- a/src/flash/nand.h
+++ b/src/flash/nand.h
@@ -56,6 +56,18 @@ typedef struct nand_block_s
int is_bad;
} nand_block_t;
+struct nand_oobfree {
+ int offset;
+ int length;
+};
+
+typedef struct nand_ecclayout_s {
+ int eccbytes;
+ int eccpos[64];
+ int oobavail;
+ struct nand_oobfree oobfree[2];
+} nand_ecclayout_t;
+
typedef struct nand_device_s
{
nand_flash_controller_t *controller;