mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
[new uImage] Move CHUNKSZ definition to image.h
CHUNKSZ defined for PPC and M68K is set to the same value of 64K, move this definition to a common header. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
This commit is contained in:
parent
321359f208
commit
559316faf7
4 changed files with 7 additions and 11 deletions
|
@ -61,13 +61,6 @@ extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
|
||||||
#include <dataflash.h>
|
#include <dataflash.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
#define CHUNKSZ (64 * 1024)
|
|
||||||
|
|
||||||
int gunzip (void *, int, unsigned char *, unsigned long *);
|
int gunzip (void *, int, unsigned char *, unsigned long *);
|
||||||
|
|
||||||
#ifdef CONFIG_BZIP2
|
#ifdef CONFIG_BZIP2
|
||||||
|
|
|
@ -164,6 +164,13 @@ typedef struct image_header {
|
||||||
uint8_t ih_name[IH_NMLEN]; /* Image Name */
|
uint8_t ih_name[IH_NMLEN]; /* Image Name */
|
||||||
} image_header_t;
|
} image_header_t;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
#define CHUNKSZ (64 * 1024)
|
||||||
|
|
||||||
#define image_to_cpu(x) ntohl(x)
|
#define image_to_cpu(x) ntohl(x)
|
||||||
#define cpu_to_image(x) htonl(x)
|
#define cpu_to_image(x) htonl(x)
|
||||||
|
|
||||||
|
|
|
@ -37,8 +37,6 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||||
#define LINUX_MAX_ENVS 256
|
#define LINUX_MAX_ENVS 256
|
||||||
#define LINUX_MAX_ARGS 256
|
#define LINUX_MAX_ARGS 256
|
||||||
|
|
||||||
#define CHUNKSZ (64 * 1024)
|
|
||||||
|
|
||||||
#ifdef CONFIG_SHOW_BOOT_PROGRESS
|
#ifdef CONFIG_SHOW_BOOT_PROGRESS
|
||||||
# include <status_led.h>
|
# include <status_led.h>
|
||||||
# define SHOW_BOOT_PROGRESS(arg) show_boot_progress(arg)
|
# define SHOW_BOOT_PROGRESS(arg) show_boot_progress(arg)
|
||||||
|
|
|
@ -49,8 +49,6 @@
|
||||||
#include <asm/cache.h>
|
#include <asm/cache.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CHUNKSZ (64 * 1024)
|
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
extern image_header_t header;
|
extern image_header_t header;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue