Add the missing has_pmecc parameter for sama5d4 based boards.

Signed-off-by: Bo Shen <voice.s...@atmel.com>
---

 arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c | 1 +
 arch/arm/boards/sama5d4ek/sama5d4ek.c               | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c 
b/arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c
index 9547c93..aa2ed8a 100644
--- a/arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c
+++ b/arch/arm/boards/sama5d4_xplained/sama5d4_xplained.c
@@ -40,6 +40,7 @@ static struct atmel_nand_data nand_pdata = {
        .rdy_pin        = -EINVAL,
        .enable_pin     = -EINVAL,
        .ecc_mode       = NAND_ECC_HW,
+       .has_pmecc      = 1,
        .pmecc_sector_size = 512,
        .pmecc_corr_cap = 8,
        .on_flash_bbt   = 1,
diff --git a/arch/arm/boards/sama5d4ek/sama5d4ek.c 
b/arch/arm/boards/sama5d4ek/sama5d4ek.c
index bbc53c6..db346d1 100644
--- a/arch/arm/boards/sama5d4ek/sama5d4ek.c
+++ b/arch/arm/boards/sama5d4ek/sama5d4ek.c
@@ -40,6 +40,7 @@ static struct atmel_nand_data nand_pdata = {
        .rdy_pin        = -EINVAL,
        .enable_pin     = -EINVAL,
        .ecc_mode       = NAND_ECC_HW,
+       .has_pmecc      = 1,
        .pmecc_sector_size = 512,
        .pmecc_corr_cap = 8,
        .on_flash_bbt   = 1,
-- 
2.3.0.rc0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to