MTD NAND: Beginning of software ECC logic

This commit is contained in:
Gregory Nutt 2013-11-18 09:43:44 -06:00
parent 3c4182115d
commit e0a02bbd2c

View File

@ -42,12 +42,29 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/mtd/nand_raw.h>
#include "chip.h" #include "chip.h"
#include "chip/sam_hsmc.h" #include "chip/sam_hsmc.h"
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Hardware ECC types. These are extensions to the NANDECC_HWECC value
* defined in include/nuttx/mtd/nand_raw.h.
*
* NANDECC_CHIPECC ECC is performed internal to chip
* NANDECC_PMECC Programmable Multibit Error Correcting Code (PMECC)
* NANDECC_HSIAO HSIAO ECC
*/
#define NANDECC_CHIPECC (NANDECC_HWECC + 0)
#define NANDECC_PMECC (NANDECC_HWECC + 1)
#define NANDECC_HSIAO (NANDECC_HWECC + 2)
/****************************************************************************
* Public Data
****************************************************************************/
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__