From 3725fded174dfd019a5ea08ee4936adf7d3acbb2 Mon Sep 17 00:00:00 2001 From: oharboe Date: Thu, 2 Apr 2009 21:24:08 +0000 Subject: 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 --- src/flash/nand.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/flash/nand.h') 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; -- cgit v1.2.3