Patchwork [U-Boot,v3,5/5] at91: 9x5: Enable PMECC for 5series ek board.

login
register
mail settings
Submitter Wu, Josh
Date Aug. 23, 2012, 10:05 a.m.
Message ID <1345716338-11217-6-git-send-email-josh.wu@atmel.com>
Download mbox | patch
Permalink /patch/179590/
State Accepted
Delegated to: Andreas Bießmann
Headers show

Comments

Wu, Josh - Aug. 23, 2012, 10:05 a.m.
Signed-off-by: Josh Wu <josh.wu@atmel.com>
---
 include/configs/at91sam9x5ek.h |    7 +++++++
 1 file changed, 7 insertions(+)
Andreas Bießmann - Sept. 1, 2012, 2:27 p.m.
Dear Josh Wu,

On 23.08.2012 12:05, Josh Wu wrote:
> Signed-off-by: Josh Wu <josh.wu@atmel.com>
> ---

applied to u-boot-atmel/master, thanks!

Best regards

Andreas Bießmann

Patch

diff --git a/include/configs/at91sam9x5ek.h b/include/configs/at91sam9x5ek.h
index 82f6b48..3a5a7e6 100644
--- a/include/configs/at91sam9x5ek.h
+++ b/include/configs/at91sam9x5ek.h
@@ -120,6 +120,13 @@ 
 #define CONFIG_SYS_NAND_ENABLE_PIN	AT91_PIN_PD4
 #define CONFIG_SYS_NAND_READY_PIN	AT91_PIN_PD5
 
+/* PMECC & PMERRLOC */
+#define CONFIG_ATMEL_NAND_HWECC		1
+#define CONFIG_ATMEL_NAND_HW_PMECC	1
+#define CONFIG_PMECC_CAP		2
+#define CONFIG_PMECC_SECTOR_SIZE	512
+#define CONFIG_PMECC_INDEX_TABLE_OFFSET	0x8000
+
 #define CONFIG_MTD_DEVICE
 #define CONFIG_CMD_MTDPARTS
 #define CONFIG_MTD_PARTITIONS