summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-06-26 10:48:53 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2013-08-22 16:50:05 +0200
commitce76f0aac6b340582f9f08cf6c3d063df97e419f (patch)
tree86b6a546cf0c25715eac68a9ce1e27e393c7faf2 /include/configs
parente08d6f3aaf11e4138de1ed04acccbcf38d04f1b6 (diff)
downloadu-boot-imx-ce76f0aac6b340582f9f08cf6c3d063df97e419f.zip
u-boot-imx-ce76f0aac6b340582f9f08cf6c3d063df97e419f.tar.gz
u-boot-imx-ce76f0aac6b340582f9f08cf6c3d063df97e419f.tar.bz2
arm: atmel: add nand trimffs subcommand for at91sam9n12 and at91sam9x5
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>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/at91sam9n12ek.h3
-rw-r--r--include/configs/at91sam9x5ek.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/at91sam9n12ek.h b/include/configs/at91sam9n12ek.h
index be8a28c..28a7925 100644
--- a/include/configs/at91sam9n12ek.h
+++ b/include/configs/at91sam9n12ek.h
@@ -122,6 +122,9 @@
#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
diff --git a/include/configs/at91sam9x5ek.h b/include/configs/at91sam9x5ek.h
index 2b1533c..b866a4b 100644
--- a/include/configs/at91sam9x5ek.h
+++ b/include/configs/at91sam9x5ek.h
@@ -123,6 +123,8 @@
#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