Skip to contentSkip to conversation

configs: atmel: sama5d4_xplained_mmc: enable HW PMECC

PATCH New Eugen.Hristev at microchip.com 1 participant 2 messages May 28, 2019 – Jun 10, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: atmel: sama5d4_xplained_mmc: enable HW PMECC

From: Eugen Hristev <[email protected]>

NAND: BUG at drivers/mtd/nand/raw/nand_base.c:4361/nand_scan_tail()!

This board has a NAND flash enabled, and it requires the HW PMECC in order to correctly probe this flash.
In the NAND flash configuration , this is selected by the GENERATE_PMECC_HEADER which is not needed for mmc configuration.

---
 configs/sama5d4_xplained_mmc_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/sama5d4_xplained_mmc_defconfig +2 -0
index 6914c29..c232da9 100644
@@ -58,6 +58,8 @@ CONFIG_DM_MMC=y
 CONFIG_GENERIC_ATMEL_MCI=y
 CONFIG_NAND=y
 CONFIG_NAND_ATMEL=y
+CONFIG_ATMEL_NAND_HW_PMECC=y
+CONFIG_PMECC_CAP=8
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH=y
 CONFIG_SF_DEFAULT_SPEED=30000000
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 configs: atmel: sama5d4_xplained_mmc: enable HW PMECC

Quoted 11 lines · On 28.05.2019 12:35, Eugen Hristev - M18282 wrote:

From: Eugen Hristev <[email protected]>

NAND: BUG at drivers/mtd/nand/raw/nand_base.c:4361/nand_scan_tail()!

This board has a NAND flash enabled, and it requires the HW PMECC in order to correctly probe this flash.
In the NAND flash configuration , this is selected by the GENERATE_PMECC_HEADER which is not needed for mmc configuration.

---

Applied to u-boot-atmel/master