|
@@ -48,7 +48,7 @@
|
|
#define NFC_V1_V2_CONFIG (host->regs + 0x0a)
|
|
#define NFC_V1_V2_CONFIG (host->regs + 0x0a)
|
|
#define NFC_V1_V2_ECC_STATUS_RESULT (host->regs + 0x0c)
|
|
#define NFC_V1_V2_ECC_STATUS_RESULT (host->regs + 0x0c)
|
|
#define NFC_V1_V2_RSLTMAIN_AREA (host->regs + 0x0e)
|
|
#define NFC_V1_V2_RSLTMAIN_AREA (host->regs + 0x0e)
|
|
-#define NFC_V1_V2_RSLTSPARE_AREA (host->regs + 0x10)
|
|
|
|
|
|
+#define NFC_V21_RSLTSPARE_AREA (host->regs + 0x10)
|
|
#define NFC_V1_V2_WRPROT (host->regs + 0x12)
|
|
#define NFC_V1_V2_WRPROT (host->regs + 0x12)
|
|
#define NFC_V1_UNLOCKSTART_BLKADDR (host->regs + 0x14)
|
|
#define NFC_V1_UNLOCKSTART_BLKADDR (host->regs + 0x14)
|
|
#define NFC_V1_UNLOCKEND_BLKADDR (host->regs + 0x16)
|
|
#define NFC_V1_UNLOCKEND_BLKADDR (host->regs + 0x16)
|
|
@@ -1274,6 +1274,9 @@ static void preset_v2(struct mtd_info *mtd)
|
|
writew(config1, NFC_V1_V2_CONFIG1);
|
|
writew(config1, NFC_V1_V2_CONFIG1);
|
|
/* preset operation */
|
|
/* preset operation */
|
|
|
|
|
|
|
|
+ /* spare area size in 16-bit half-words */
|
|
|
|
+ writew(mtd->oobsize / 2, NFC_V21_RSLTSPARE_AREA);
|
|
|
|
+
|
|
/* Unlock the internal RAM Buffer */
|
|
/* Unlock the internal RAM Buffer */
|
|
writew(0x2, NFC_V1_V2_CONFIG);
|
|
writew(0x2, NFC_V1_V2_CONFIG);
|
|
|
|
|