diff mbox

[U-Boot,v2,09/11] net: tftpput: add saveaddr and savesize env variables

Message ID 1319515208-7810-10-git-send-email-sjg@chromium.org
State New, archived
Headers show

Commit Message

Simon Glass Oct. 25, 2011, 4 a.m. UTC
We need something akin to load_addr to handle saving data.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 common/cmd_nvedit.c |    2 ++
 include/common.h    |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

Comments

Wolfgang Denk Oct. 26, 2011, 7:35 p.m. UTC | #1
Dear Simon Glass,

In message <1319515208-7810-10-git-send-email-sjg@chromium.org> you wrote:
> We need something akin to load_addr to handle saving data.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>  common/cmd_nvedit.c |    2 ++
>  include/common.h    |    2 ++
>  2 files changed, 4 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 4e27ba0..396a171 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 0adc704..abad591 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);