summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-11-23 16:55:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-11-26 08:30:41 +0100
commit51acebdcf59c74f7d33dc8799edc64c8359d6f12 (patch)
tree769566d08858700ae43b9f3d6d62c66a5bcc2ff3 /drivers/mtd
parentc61b15ffd778e50f5da435dbba173161b39c9051 (diff)
downloadbarebox-51acebdcf59c74f7d33dc8799edc64c8359d6f12.tar.gz
barebox-51acebdcf59c74f7d33dc8799edc64c8359d6f12.tar.xz
atmel_nand: fix pmecc timeout
the timeout is 100ms not 100ns on sam9x5 the SoC is fast enough so we can not see it but not on sam9n12 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/atmel_nand_ecc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/atmel_nand_ecc.h b/drivers/mtd/nand/atmel_nand_ecc.h
index 34f481e50f..e39aada36b 100644
--- a/drivers/mtd/nand/atmel_nand_ecc.h
+++ b/drivers/mtd/nand/atmel_nand_ecc.h
@@ -146,6 +146,6 @@
#define PMECC_LOOKUP_TABLE_SIZE_1024 0x4000
/* Time out value for reading PMECC status register */
-#define PMECC_MAX_TIMEOUT_MS 100
+#define PMECC_MAX_TIMEOUT_MS 100 * MSECOND
#endif