aboutsummaryrefslogtreecommitdiff
path: root/lib_generic/crc32.c
AgeCommit message (Collapse)AuthorFilesLines
2009-12-02crc32: Impl. linux optimized crc32()Joakim Tjernlund1-88/+112
Ported over the more efficient linux crc32() function. A quick comparsion on ppc: After changing the old crc32 to do 4 bytes in the inner loop to be able to compare with new version one can note: - old inner loop has 61 insn, new has 19 insn. - new crc32 does one 32 bit load of data to crc while the old does four 8 bits loads. - size is bit bigger for the new crc32: 1392(old) 1416(new) of text. The is because the new version shares code with crc32_no_comp() instead of duplicating code. - about 33% faster on ppc: New > crc 0 0xfffffff -> 39 secs Old > crc 0 0xfffffff -> 60 secs Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2009-07-16Remove legacy NAND and disk on chip code.Scott Wood1-3/+1
Legacy NAND had been scheduled for removal. Any boards that use this were already not building in the previous release due to an #error. The disk on chip code in common/cmd_doc.c relies on legacy NAND, and it has also been removed. There is newer disk on chip code in drivers/mtd/nand; someone with access to hardware and sufficient time and motivation can try to get that working, but for now disk on chip is not supported. Signed-off-by: Scott Wood <scottwood@freescale.com>
2009-04-04rename include/zlib.h to include/u-boot/zlib.hJean-Christophe PLAGNIOL-VILLARD1-1/+1
Some systems have zlib.h installed in /usr/include/. This isn't the desired file for u-boot code - we want the one in include/zlib.h. This rename will avoid the conflict. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-08-13drivers/mtd/nand: Move conditional compilation to MakefileJean-Christophe PLAGNIOL-VILLARD1-1/+1
rename CFG_NAND_LEGACY to CONFIG_NAND_LEGACY Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-05-09Fix Compilation Errors with 'tools/env/fw_printenv'Grant Erickson1-0/+2
In the current top-of-tree, 1.3.3.-rc2, the optional tool 'tools/env/fw_printenv' fails to compile for two reasons: 1) The header watchdog.h cannot be found. 2) The header zlib.h is picked up from the tool chain rather than the project causing a prototype conflict for crc32. This patch addresses both of these issues. Platforms Tested On: - AMCC "Kilauea" Signed-off-by: Grant Erickson <gerickson@nuovations.com>
2008-04-26Coding Style cleanup, update CHANGELOGWolfgang Denk1-2/+2
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-04-25Use watchdog-aware functions when calculating hashes of imagesBartlomiej Sieka1-1/+1
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
2008-04-25lib_generic/crc32.c: add missing #include <watchdog.h>Wolfgang Denk1-0/+1
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-04-25lib_generic/crc32.c: fix compile problemWolfgang Denk1-5/+4
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-04-25Add support for calculating hashes with watchdog triggeringBartlomiej Sieka1-0/+27
Implement watchodg-aware variants of hash calculation functions: - crc32_wd() - md5_wd() - sha1_csum_wd() The above functions calculate the hash of the input buffer in chunks, triggering the watchdog after processing each chunk. The chunk size is given as a function call parameter. Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
2008-04-24crc32: use uint32_t rather than unsigned longMike Frysinger1-9/+10
The envcrc.c does sizeof(unsigned long) when calculating the crc, but this is done with the build toolchain instead of the target tool chain, so if the build is a 64bit system but the target is 32bits, the size will obviously be wrong. This converts all unsigned long stuff related to crc32 to uint32_t types. Compile tested only: output of ./tools/envcrc when run on a 32bit build system matches that of a 64bit build system. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2007-07-10disk/ doc/ lib_*/ and tools/: Remove lingering references to CFG_CMD_* symbols.Jon Loeliger1-2/+2
Fixed some broken instances of "#ifdef CMD_CFG_IDE" too. Those always evaluated TRUE, and thus were always compiled even when IDE really wasn't defined/wanted. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2007-07-09lib_{arm,avr32,blackfin,generic,i386}/: Remove obsolete references to ↵Jon Loeliger1-2/+2
CONFIG_COMMANDS Signed-off-by: Jon Loeliger <jdl@freescale.com>
2007-07-04lib_*/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).Jon Loeliger1-2/+3
This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely. All transformations are of the form: Before: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) After: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT) Signed-off-by: Jon Loeliger <jdl@freescale.com>
2006-10-12Fix JFFS2 compilation problemStefan Roese1-2/+2
Patch by Stefan Roese, 12 Oct 2006
2006-10-11Cleanup of NAND update patch (remove changelog from cmd_nand.c)Stefan Roese1-3/+2
Patch by Guido Classen, 10 Oct 2006
2006-10-10* Several improvements to the new NAND subsystem:Stefan Roese1-1/+3
- 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
2003-08-17* Make Ethernet autonegotiation on INCA-IP work for all clock rates;U-Boot-0_4_6wdenk1-1/+0
allow selection of clock frequency as "make" target * Implement memory autosizing code for IceCube boards * Configure network port on INCA-IP for autonegotiation * Fix overflow problem in network timeout code * Patch by Richard Woodruff, 8 Aug 2003: Allow crc32 to be used at address 0x000 (crc32_no_comp, too).
2003-07-26* Allow crc32 to be used at address 0x000wdenk1-1/+0
* Provide consistent interface to standalone applications to access the 'global_data' structure Provide a doc/README.standalone more useful to users/developers. * Make IceCube MGT5100 FEC driver work
2002-08-17Initial revisionwdenk1-0/+199