configs: atmel: sama5d4_xplained_mmc: enable HW PMECC
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 28 May 2019 08:41:56 +0000 (11:41 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 28 May 2019 09:28:33 +0000 (12:28 +0300)
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.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
configs/sama5d4_xplained_mmc_defconfig

index f673832dffcd313d2e7bb023edfcca399fa0e914..0504b4ec0fc6aa75360514a38ba56d4fb4624aa1 100644 (file)
@@ -59,6 +59,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