mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
tftpput: add save_addr and save_size global variables
We need something akin to load_addr to handle saving data. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
58f317d182
commit
1aec244acf
2 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,8 @@ SPI_FLASH|MG_DISK|NVRAM|MMC} or CONFIG_ENV_IS_NOWHERE
|
|||
#define MAX_ENV_SIZE (1 << 20) /* 1 MiB */
|
||||
|
||||
ulong load_addr = CONFIG_SYS_LOAD_ADDR; /* Default Load Address */
|
||||
ulong save_addr; /* Default Save Address */
|
||||
ulong save_size; /* Default Save Size (in bytes) */
|
||||
|
||||
/*
|
||||
* Table with supported baudrates (defined in config_xyz.h)
|
||||
|
|
|
@ -284,6 +284,8 @@ void flash_perror (int);
|
|||
int source (ulong addr, const char *fit_uname);
|
||||
|
||||
extern ulong load_addr; /* Default Load Address */
|
||||
extern ulong save_addr; /* Default Save Address */
|
||||
extern ulong save_size; /* Default Save Size */
|
||||
|
||||
/* common/cmd_doc.c */
|
||||
void doc_probe(unsigned long physadr);
|
||||
|
|
Loading…
Reference in a new issue