summaryrefslogtreecommitdiff
path: root/include/configs/sequoia.h
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-06-01 15:29:04 +0200
committerStefan Roese <sr@denx.de>2007-06-01 15:29:04 +0200
commit9d9096043e8f713d4bf1743d32e1459e6a11644b (patch)
tree27d8f360f76b6de1ecee420c73470e1c93cfb7b6 /include/configs/sequoia.h
parentcf959c7d6687567c308e366e9581e1a5aff5cc5b (diff)
downloadu-boot-imx-9d9096043e8f713d4bf1743d32e1459e6a11644b.zip
u-boot-imx-9d9096043e8f713d4bf1743d32e1459e6a11644b.tar.gz
u-boot-imx-9d9096043e8f713d4bf1743d32e1459e6a11644b.tar.bz2
ppc4xx: Update Sequoia NAND booting support with ECC
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/configs/sequoia.h')
-rw-r--r--include/configs/sequoia.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/configs/sequoia.h b/include/configs/sequoia.h
index 1f19621..0b80888 100644
--- a/include/configs/sequoia.h
+++ b/include/configs/sequoia.h
@@ -166,12 +166,19 @@
/*
* Now the NAND chip has to be defined (no autodetection used!)
*/
-#define CFG_NAND_PAGE_SIZE (512) /* NAND chip page size */
+#define CFG_NAND_PAGE_SIZE 512 /* NAND chip page size */
#define CFG_NAND_BLOCK_SIZE (16 << 10) /* NAND chip block size */
-#define CFG_NAND_PAGE_COUNT (32) /* NAND chip page count */
-#define CFG_NAND_BAD_BLOCK_POS (5) /* Location of bad block marker */
+#define CFG_NAND_PAGE_COUNT 32 /* NAND chip page count */
+#define CFG_NAND_BAD_BLOCK_POS 5 /* Location of bad block marker */
#undef CFG_NAND_4_ADDR_CYCLE /* No fourth addr used (<=32MB) */
+#define CFG_NAND_ECCSIZE 256
+#define CFG_NAND_ECCBYTES 3
+#define CFG_NAND_ECCSTEPS (CFG_NAND_PAGE_SIZE / CFG_NAND_ECCSIZE)
+#define CFG_NAND_OOBSIZE 16
+#define CFG_NAND_ECCTOTAL (CFG_NAND_ECCBYTES * CFG_NAND_ECCSTEPS)
+#define CFG_NAND_ECCPOS {0, 1, 2, 3, 6, 7}
+
#ifdef CFG_ENV_IS_IN_NAND
/*
* For NAND booting the environment is embedded in the U-Boot image. Please take