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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user