diff mbox

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

Message ID 1400234355-24819-4-git-send-email-andreas.devel@googlemail.com
State Changes Requested, archived
Delegated to: Andreas Bießmann
Headers show

Commit Message

Andreas Bießmann May 16, 2014, 9:59 a.m. UTC
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Cc: Bo Shen <voice.shen@atmel.com>
---

Changes in v2: None

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

Patch

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