diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-02 21:24:08 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-02 21:24:08 +0000 |
commit | 3725fded174dfd019a5ea08ee4936adf7d3acbb2 (patch) | |
tree | 51d275f28e83bdd06addb88fe07f2e655a26612a /src/flash/nand.h | |
parent | c3d96a3a6e483f02ab3d57dfd4ead92e54caf1b0 (diff) |
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.h | 12 |
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; |