aboutsummaryrefslogtreecommitdiff
path: root/lib_generic
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2006-10-10 12:36:02 +0200
committerStefan Roese <sr@denx.de>2006-10-10 12:38:50 +0200
commit2255b2d2044d434463eb2661e18018e50f1643d9 (patch)
tree68cddf330cb3d40c29e0e3c01a5c0f85b706f82f /lib_generic
parenta3bb7bfc06a9ccb7e2f91ccc54a90ae69177214f (diff)
downloadu-boot-linaro-stable-2255b2d2044d434463eb2661e18018e50f1643d9.tar.gz
* Several improvements to the new NAND subsystem:
- JFFS2 related commands implemented in mtd-utils style - Support for bad blocks - Bad block testing commands - NAND lock commands Please take a look at doc/README.nand for more details Patch by Guido Classen, 10 Oct 2006
Diffstat (limited to 'lib_generic')
-rw-r--r--lib_generic/crc32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib_generic/crc32.c b/lib_generic/crc32.c
index 50ca4ffd3..828341350 100644
--- a/lib_generic/crc32.c
+++ b/lib_generic/crc32.c
@@ -171,7 +171,9 @@ uLong ZEXPORT crc32(crc, buf, len)
return crc ^ 0xffffffffL;
}
-#if (CONFIG_COMMANDS & CFG_CMD_JFFS2)
+#if (CONFIG_COMMANDS & CFG_CMD_JFFS2) \
+ || (CONFIG_COMMANDS & CFG_CMD_NAND) && !defined(CFG_NAND_LEGACY)
+
/* No ones complement version. JFFS2 (and other things ?)
* don't use ones compliment in their CRC calculations.