summaryrefslogtreecommitdiff
path: root/include/configs/at91sama5ek.h
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-05-10 14:57:12 +0800
committerJosh Wu <josh.wu@atmel.com>2012-09-25 16:35:58 +0800
commitc283fa1865b4789d64ffb0f9dfce436cfd5cff61 (patch)
treed931c15f4ac70c6f3c9c005415bbdf0149b2f273 /include/configs/at91sama5ek.h
parent0cab550f7a1dc791099563c351f1c350b3244698 (diff)
PMECC: enable SAMA5 PMECC support
Signed-off-by: Bo Shen <voice.shen@atmel.com> [merge with mainline pmecc] Signed-off-by: Josh Wu <josh.wu@atmel.com>
Diffstat (limited to 'include/configs/at91sama5ek.h')
-rw-r--r--include/configs/at91sama5ek.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/at91sama5ek.h b/include/configs/at91sama5ek.h
index 93046e64e5..e96b554ce9 100644
--- a/include/configs/at91sama5ek.h
+++ b/include/configs/at91sama5ek.h
@@ -159,6 +159,12 @@
/* our CLE is AD22 */
#define CONFIG_SYS_NAND_MASK_CLE (1 << 22)
#define CONFIG_SYS_NAND_ONFI_DETECTION 1
+/* PMECC & PMERRLOC */
+#define CONFIG_ATMEL_NAND_HWECC
+#define CONFIG_ATMEL_NAND_HW_PMECC
+#define CONFIG_PMECC_CAP 2
+#define CONFIG_PMECC_SECTOR_SIZE 512
+#define CONFIG_PMECC_INDEX_TABLE_OFFSET ATMEL_PMECC_INDEX_OFFSET_512
#endif
/* Ethernet Hardware */