diff options
author | Charles Manning <cdhmanning@gmail.com> | 2014-05-14 14:45:00 +1200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-05 14:38:38 -0400 |
commit | abbc67eedf37a240fe6cdd1ce46eedd12cd3a13f (patch) | |
tree | 36ea84685bf3f44cdb5da9dccb4afc85c073c567 /tools/pbl_crc32.h | |
parent | 4eb580b780057413ddc82855d913ea2f1cbc9dd2 (diff) | |
download | u-boot-abbc67eedf37a240fe6cdd1ce46eedd12cd3a13f.tar.gz u-boot-abbc67eedf37a240fe6cdd1ce46eedd12cd3a13f.tar.bz2 u-boot-abbc67eedf37a240fe6cdd1ce46eedd12cd3a13f.zip |
mkimage : Split out and clean pbl_crc32 for use by other image types
The crc32 used by pblimgae is NOT the same as zlib crc32.
The pbl_crc32 is useful for other purposes in mkimage so split it out.
While we are about it, clean up redundant and confusing code.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'tools/pbl_crc32.h')
-rw-r--r-- | tools/pbl_crc32.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/pbl_crc32.h b/tools/pbl_crc32.h new file mode 100644 index 0000000000..4ab55ee768 --- /dev/null +++ b/tools/pbl_crc32.h @@ -0,0 +1,13 @@ +/* + * Copyright 2012 Freescale Semiconductor, Inc. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef PBLCRC32_H +#define PBLCRC32_H + +#include <stdint.h> +uint32_t pbl_crc32(uint32_t in_crc, const char *buf, uint32_t len); + +#endif |