From patchwork Fri Jan 3 10:11:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 3431031 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E1B5F9F295 for ; Fri, 3 Jan 2014 10:51:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 003C220127 for ; Fri, 3 Jan 2014 10:51:23 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 11C9020122 for ; Fri, 3 Jan 2014 10:51:22 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vz1mU-0008EC-Bm; Fri, 03 Jan 2014 10:15:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vz1le-0003Ut-Tv; Fri, 03 Jan 2014 10:14:14 +0000 Received: from mail-ee0-f50.google.com ([74.125.83.50]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vz1js-0003G8-Ae for linux-arm-kernel@lists.infradead.org; Fri, 03 Jan 2014 10:12:27 +0000 Received: by mail-ee0-f50.google.com with SMTP id c41so6584365eek.37 for ; Fri, 03 Jan 2014 02:12:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:content-type; bh=mo5SKqcgsMRtdckxLLQLmKbgvTkFV+SsGXIscUK7F74=; b=c2q1mVbcf3drPL+SKZmkF71O74AIm373Qh2NClGRznVdtRnat8ccZcy1vYvLGoBILy nJK9MHRPmOjxdJqWePky22PHkju75OyBulqi3eF8DNTctVQW7O7sVRQO0s9EgU2iTVrB GDj0DXg5c0X7oSmf59uCCgGiZFzer3oi+JGVppjwjJ9R8FiZC5cTv5IvmRn+CaEAjEKk 9R7S+IOTpsivsKE8AShCqQc8jzz03YpwcieHewQlmS1Jw0sw7vRfviIE48MysOcC7+Fn f0PX1yv8fwQa+D8/NmzE+z117q4pkl7kkdXndEM4ShC8/HVu36i6mXnHDflGsc8QGHgU e4Ag== X-Gm-Message-State: ALoCoQkpoj2ReC71rMgfc9dmtyBk0gNv50S/CzeA/SOMuZ8l2c9WEeD2/4TpmtKvie34Y7DpQ3wv X-Received: by 10.14.88.134 with SMTP id a6mr72864851eef.5.1388743926889; Fri, 03 Jan 2014 02:12:06 -0800 (PST) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id o1sm143614092eea.10.2014.01.03.02.12.05 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 03 Jan 2014 02:12:05 -0800 (PST) From: Michal Simek To: Michal Simek , u-boot@lists.denx.de, Joe Hershberger , linux-arm-kernel@lists.infradead.org, Albert Aribaud , Tom Rini Subject: [PATCH v1 19/24] zynq-common: Define flash env. partition Date: Fri, 3 Jan 2014 11:11:04 +0100 Message-Id: <9c00c6840757ad351a96ecb1c1b1bb0132c2160b.1388743861.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140103_051224_535542_BB9A6375 X-CRM114-Status: GOOD ( 12.05 ) X-Spam-Score: -1.9 (-) Cc: Jagannadha Sutradharudu Teki X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jagannadha Sutradharudu Teki Last 128Kb sector of 1Mb flash is defined as u-boot environment partition. Signed-off-by: Jagannadha Sutradharudu Teki Signed-off-by: Michal Simek --- Changes in v1: None include/configs/zynq.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 1.8.2.3 diff --git a/include/configs/zynq.h b/include/configs/zynq.h index a6caf0c..2e82073 100644 --- a/include/configs/zynq.h +++ b/include/configs/zynq.h @@ -110,7 +110,17 @@ #define CONFIG_ENV_SIZE (128 << 10) /* Environment */ -#define CONFIG_ENV_IS_NOWHERE +#ifndef CONFIG_ENV_IS_NOWHERE +# ifndef CONFIG_SYS_NO_FLASH +# define CONFIG_ENV_IS_IN_FLASH +# elif defined(CONFIG_SYS_NO_FLASH) +# define CONFIG_ENV_IS_NOWHERE +# endif + +# define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE +# define CONFIG_ENV_OFFSET 0xE0000 +# define CONFIG_CMD_SAVEENV +#endif /* Default environment */ #define CONFIG_EXTRA_ENV_SETTINGS \