[U-Boot] [PATCH 6/8] tftpput: add save_addr and save_size global variables
Simon Glass
sjg at chromium.org
Sat Oct 22 06:51:38 CEST 2011
We need something akin to load_addr to handle saving data.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
common/cmd_nvedit.c | 2 ++
include/common.h | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index da7028c..30cf8df 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 99c2a37..d7382d9 100644
--- a/include/common.h
+++ b/include/common.h
@@ -278,6 +278,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);
--
1.7.3.1
More information about the U-Boot
mailing list