summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2008-04-25 13:54:02 +0200
committerWolfgang Denk <wd@denx.de>2008-04-25 14:05:21 +0200
commit7590378fb9c686709492ceb142825cd058255956 (patch)
treea6bb251a079fd9325cd77f6b7d2a6954fc84720d /include/image.h
parent1de6b28be5d107ae90ad7a8a43653c49966e8afe (diff)
downloadu-boot-imx-7590378fb9c686709492ceb142825cd058255956.zip
u-boot-imx-7590378fb9c686709492ceb142825cd058255956.tar.gz
u-boot-imx-7590378fb9c686709492ceb142825cd058255956.tar.bz2
Use watchdog-aware functions when calculating hashes of images - take two
Some files didn't get updated properly with the "Use watchdog-aware functions when calculating hashes of images" commit, this commit fixes this. Signed-off-by: Bartlomiej Sieka <tur@semihalf.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/include/image.h b/include/image.h
index 4076484..664e51e 100644
--- a/include/image.h
+++ b/include/image.h
@@ -227,9 +227,23 @@ typedef struct bootm_headers {
/*
* Some systems (for example LWMON) have very short watchdog periods;
* we must make sure to split long operations like memmove() or
- * crc32() into reasonable chunks.
+ * checksum calculations into reasonable chunks.
*/
+#ifndef CHUNKSZ
#define CHUNKSZ (64 * 1024)
+#endif
+
+#ifndef CHUNKSZ_CRC32
+#define CHUNKSZ_CRC32 (64 * 1024)
+#endif
+
+#ifndef CHUNKSZ_MD5
+#define CHUNKSZ_MD5 (64 * 1024)
+#endif
+
+#ifndef CHUNKSZ_SHA1
+#define CHUNKSZ_SHA1 (64 * 1024)
+#endif
#define uimage_to_cpu(x) ntohl(x)
#define cpu_to_uimage(x) htonl(x)
@@ -363,7 +377,6 @@ static inline void image_set_name (image_header_t *hdr, const char *name)
int image_check_hcrc (image_header_t *hdr);
int image_check_dcrc (image_header_t *hdr);
#ifndef USE_HOSTCC
-int image_check_dcrc_wd (image_header_t *hdr, ulong chunksize);
int getenv_yesno (char *var);
ulong getenv_bootm_low(void);
ulong getenv_bootm_size(void);