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
This commit is contained in:
oharboe
2009-04-02 21:24:08 +00:00
parent c3d96a3a6e
commit 3725fded17
2 changed files with 68 additions and 5 deletions

View File

@@ -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;