]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: atmel: add nand trimffs subcommand for at91sam9n12 and at91sam9x5
authorBo Shen <voice.shen@atmel.com>
Wed, 26 Jun 2013 02:48:53 +0000 (10:48 +0800)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Thu, 22 Aug 2013 14:50:05 +0000 (16:50 +0200)
as the at91sam9n12 and at91sam9x5 soc support PMECC, when use u-boot
to flash the rootfs, in order to avoid flash one sector with all 0xff
into NAND, so use nand trimffs subcommand to avoid it

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
include/configs/at91sam9n12ek.h
include/configs/at91sam9x5ek.h

index be8a28c32714f7e89a262f09242a56b37900fa1d..28a79258df41a783be95d459f7f5fef5219e5dd6 100644 (file)
 #define CONFIG_PMECC_CAP               2
 #define CONFIG_PMECC_SECTOR_SIZE       512
 #define CONFIG_PMECC_INDEX_TABLE_OFFSET        0x8000
+
+#define CONFIG_CMD_NAND_TRIMFFS
+
 #endif
 
 #define CONFIG_MTD_PARTITIONS
index 2b1533c85ac70eda187c9040f5daa7f5deb06c6e..b866a4b0c382905107722a21d74fad4e3e24e233 100644 (file)
 #define CONFIG_PMECC_SECTOR_SIZE       512
 #define CONFIG_PMECC_INDEX_TABLE_OFFSET        0x8000
 
+#define CONFIG_CMD_NAND_TRIMFFS
+
 #define CONFIG_MTD_DEVICE
 #define CONFIG_CMD_MTDPARTS
 #define CONFIG_MTD_PARTITIONS