[U-Boot] [PATCH v2 3/3] sama5d3xek: enable PMECC header generation

Andreas Bießmann andreas.devel at googlemail.com
Fri May 16 11:59:15 CEST 2014


Signed-off-by: Andreas Bießmann <andreas.devel at googlemail.com>
Cc: Bo Shen <voice.shen at atmel.com>
---

Changes in v2: None

 include/configs/sama5d3xek.h |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/configs/sama5d3xek.h b/include/configs/sama5d3xek.h
index 516be85..bddd7e4 100644
--- a/include/configs/sama5d3xek.h
+++ b/include/configs/sama5d3xek.h
@@ -201,6 +201,12 @@
 #define CONFIG_BOOTCOMMAND	"nand read 0x21000000 0x180000 0x80000;" \
 				"nand read 0x22000000 0x200000 0x600000;" \
 				"bootm 0x22000000 - 0x21000000"
+#define CONFIG_SPL_AT91_HEADER_USE_PMECC	1
+#define CONFIG_SPL_AT91_HEADER_SECTOR_PER_PAGE	4
+#define CONFIG_SPL_AT91_HEADER_SECTOR_SIZE	CONFIG_PMECC_SECTOR_SIZE
+#define CONFIG_SPL_AT91_HEADER_SPARE_SIZE	64
+#define CONFIG_SPL_AT91_HEADER_ECC_BITS		CONFIG_PMECC_CAP
+#define CONFIG_SPL_AT91_HEADER_ECC_OFFSET	36
 #elif CONFIG_SYS_USE_MMC
 /* bootstrap + u-boot + env in sd card */
 #define CONFIG_ENV_IS_IN_MMC
-- 
1.7.10.4



More information about the U-Boot mailing list