diff options
author | Wu, Josh <Josh.wu@atmel.com> | 2014-06-10 17:50:09 +0800 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-07-21 20:02:01 -0700 |
commit | 50e04e2f0cf25917d8bec05326d0003cc2ab25eb (patch) | |
tree | 20b2d923e6644d37941a59e27e34aa1361aff6ff /drivers/mtd/nand/atmel_nand_nfc.h | |
parent | b38576667cdcf7a646843b07666faae11cc63e9c (diff) | |
download | blackbird-op-linux-50e04e2f0cf25917d8bec05326d0003cc2ab25eb.tar.gz blackbird-op-linux-50e04e2f0cf25917d8bec05326d0003cc2ab25eb.zip |
mtd: atmel_nand: add NFC status error check
Add a new function to read the NFC status. Meantime, this function will
check if there is any errors in NFC.
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Tested-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/atmel_nand_nfc.h')
-rw-r--r-- | drivers/mtd/nand/atmel_nand_nfc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/nand/atmel_nand_nfc.h b/drivers/mtd/nand/atmel_nand_nfc.h index 4efd117cd3a3..85b8ca6af7d2 100644 --- a/drivers/mtd/nand/atmel_nand_nfc.h +++ b/drivers/mtd/nand/atmel_nand_nfc.h @@ -37,6 +37,10 @@ #define ATMEL_HSMC_NFC_SR 0x08 /* NFC Status Register */ #define NFC_SR_XFR_DONE (1 << 16) #define NFC_SR_CMD_DONE (1 << 17) +#define NFC_SR_DTOE (1 << 20) +#define NFC_SR_UNDEF (1 << 21) +#define NFC_SR_AWB (1 << 22) +#define NFC_SR_ASE (1 << 23) #define NFC_SR_RB_EDGE (1 << 24) #define ATMEL_HSMC_NFC_IER 0x0c |