From patchwork Tue Oct 25 04:00:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 121482 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 5CF6AB6F76 for ; Tue, 25 Oct 2011 15:01:58 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5C2BC28EFC; Tue, 25 Oct 2011 06:01:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F1SBnDHFWn6z; Tue, 25 Oct 2011 06:01:42 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4A48628DA1; Tue, 25 Oct 2011 06:01:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EEE3E28C90 for ; Tue, 25 Oct 2011 06:00:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id clOJ6Kgw4QCQ for ; Tue, 25 Oct 2011 06:00:50 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.67]) by theia.denx.de (Postfix) with ESMTPS id 443E528C67 for ; Tue, 25 Oct 2011 06:00:50 +0200 (CEST) Received: from wpaz1.hot.corp.google.com (wpaz1.hot.corp.google.com [172.24.198.65]) by smtp-out.google.com with ESMTP id p9P40gPa026593; Mon, 24 Oct 2011 21:00:42 -0700 Received: from glucid-laptop-imager.hot.corp.google.com ([172.19.243.42]) by wpaz1.hot.corp.google.com with ESMTP id p9P40eE4001661; Mon, 24 Oct 2011 21:00:40 -0700 Received: by glucid-laptop-imager.hot.corp.google.com (Postfix, from userid 121222) id 8252734E9B9; Mon, 24 Oct 2011 21:00:39 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Mon, 24 Oct 2011 21:00:06 -0700 Message-Id: <1319515208-7810-10-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.3.1 In-Reply-To: <1319515208-7810-1-git-send-email-sjg@chromium.org> References: <1319515208-7810-1-git-send-email-sjg@chromium.org> X-System-Of-Record: true Subject: [U-Boot] [PATCH v2 09/11] net: tftpput: add saveaddr and savesize env variables X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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(+), 0 deletions(-) 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);