From 1aec244acf9daf0d4dad80fe86b2c2b7404251d6 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 21 Oct 2011 18:51:38 +0000 Subject: [PATCH] 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 --- common/cmd_nvedit.c | 2 ++ include/common.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index 4e27ba0b11..396a17135e 100644 --- a/common/cmd_nvedit.c +++ b/common/cmd_nvedit.c @@ -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) diff --git a/include/common.h b/include/common.h index 9166ca1ed6..825ab72c09 100644 --- a/include/common.h +++ b/include/common.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); -- 2.39.5