[PATCH 07/17] mtd: nand_mrvl_nfc: Use Auto Read Status on program/erase
Sebastian Hesselbarth
sebastian.hesselbarth at gmail.com
Thu Oct 8 15:06:09 PDT 2015
Marvell NAND controller allows to enable an Auto Read Status feature
that will monitor NAND status during Erase and Program operations.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth at gmail.com>
---
Cc: Robert Jarzmik <robert.jarzmik at free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Cc: Ezequiel Garcia <ezequiel at vanguardiasur.com.ar>
Cc: barebox at lists.infradead.org
---
drivers/mtd/nand/nand_mrvl_nfc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/nand/nand_mrvl_nfc.c b/drivers/mtd/nand/nand_mrvl_nfc.c
index b10d449da444..9d1803ccc6ba 100644
--- a/drivers/mtd/nand/nand_mrvl_nfc.c
+++ b/drivers/mtd/nand/nand_mrvl_nfc.c
@@ -561,6 +561,7 @@ static int prepare_set_command(struct mrvl_nand_host *host, int command,
case NAND_CMD_PAGEPROG:
host->ndcb0 |= NDCB0_CMD_TYPE(0x1)
+ | NDCB0_AUTO_RS
| NDCB0_DBC
| (NAND_CMD_PAGEPROG << 8)
| NAND_CMD_SEQIN
@@ -598,6 +599,7 @@ static int prepare_set_command(struct mrvl_nand_host *host, int command,
case NAND_CMD_ERASE1:
host->ndcb0 |= NDCB0_CMD_TYPE(2)
+ | NDCB0_AUTO_RS
| NDCB0_ADDR_CYC(3)
| NDCB0_DBC
| (NAND_CMD_ERASE2 << 8)
--
2.1.0
More information about the barebox
mailing list