From patchwork Fri Jun 9 14:12:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 103533 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp230282qgd; Fri, 9 Jun 2017 07:14:21 -0700 (PDT) X-Received: by 10.80.144.40 with SMTP id b37mr21945288eda.36.1497017661132; Fri, 09 Jun 2017 07:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497017661; cv=none; d=google.com; s=arc-20160816; b=c7JV6qxtFoY28jiEZNfdX1d+fXGT9QF09lC0IdCpB9nt7+YPbE9Uuj06tEac9TSZz1 shoUrgWKDDECzvcBvRgjntogEqfYZ9v3Jdn16nBGF5weIhWtpqMnH/3HeAMAp24I4BbX iWs9YFdlWdpHmuZHAskDFWDozIPP3EkWw21C+yPawn+bwkXbe4TADWoA/wgaMS2DiAGE 4KuN8ehVOQc8BJs43fe6hq+YjVxnnF1nuQYhz1/Ikxk7u6LNKAfbPD77W0uuOtFKiP/2 w06NbQtQXpBoVyjc/4+Y9Ou9SNUF8DshXt9iRdQc3kobwZEIcOX3CvHIWlwE8J2/X/9E CiYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=9xxxQudgUwXe2elAsAixMTRa4RK2V8qRWH6qLav/5SY=; b=f4v38pQtlfSP2uMCYQ23GCUVlAa9eP5jgKKA2SC+ghuJac0V+s9HmDXqR2Dz1M+SjY AeNX+c4+xDgfZmeOveMO5LJdLYYZXo1SOLH2rzV+qcMaUmsl3F9UgI44PnjlIsM75QNs 0DyP3QGuGog9U6wp5BR6XYx1fxy3twCMU1EvFNGseb/1NlLwbts8PxaCLR+q4aEUDPpD WIdTjxOUYW7w1hU2qnCDUIJcBR1zMrGWNff6RZpJev8sGldtnFrqQsmHIvGVxsdCOsfX pHui/GMn9k1O81uNTMYWCGLztSnw4P4etbuR5fB6zBDcOsgccxs4gpdY6cbR8+hO8L7Q QvMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id i34si1336367eda.35.2017.06.09.07.14.20; Fri, 09 Jun 2017 07:14:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 9DE36C21F98; Fri, 9 Jun 2017 14:13:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 4C76DC21F9D; Fri, 9 Jun 2017 14:13:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C1930C21F8E; Fri, 9 Jun 2017 14:13:02 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by lists.denx.de (Postfix) with ESMTPS id 328D9C21D72 for ; Fri, 9 Jun 2017 14:12:58 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id m77so5649224lfe.0 for ; Fri, 09 Jun 2017 07:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=AT/aqs2x/Xl9wnF6X5VApewbpY5gG265h1Mwz4GAb1o=; b=VHRIDa/wXuvSMeNqUvz+1gi5OPsHVYrMRFgqAuwnC9EA5KMdwCMhGYy7VzTHMG6O+w Ht33sb+c88kvVvmJCcqHkVxmLMdhycD6Yoe2CiDEh5QoZbVzchBBN2TeTau1U9y4uNWh 5J5wcj2Bt3bEH5b1sXSKl2sWpSlPgmbySXs3s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AT/aqs2x/Xl9wnF6X5VApewbpY5gG265h1Mwz4GAb1o=; b=NW99CPBEUfqnI25Eb6J9RRQqNTc3mouP8VBNwHvvUDCYYRwiKO/dcqVcExq1vjpOIU J0EFjrq47EmvJm21AlmsWx3qHsnEOfCHG1OGTeNQOXlF1hYMxG8n6bplqI2s/MniTpRS Y9jTdfHP7BO3Te5c65i+PYUSw/f2aWpnsVUPQSUKHLVziCldyzXjNAFnQd76FFF6nHsf aTsQvz0aVLXWLe6jpZshwJhb3wuYa/CvBE1hyM8WDRPJBDonUIda5rQWAzWjkfedVVjC h1m5YVAu44A1U096e5uT1fgPI+pfYpcBCcaKCK4Y8iMPvchM/oQ6v+U1usx+nft0b/FX e2jQ== X-Gm-Message-State: AODbwcArZhdoUhYadzMTM5LoM06fmi+U4Ac3d08W42GbwvKpa6xUuEHk 9eTSOPgFraEY3crUEnk2JQ== X-Received: by 10.46.0.21 with SMTP id 21mr2300621lja.114.1497017577290; Fri, 09 Jun 2017 07:12:57 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id o101sm293811lfi.34.2017.06.09.07.12.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Jun 2017 07:12:56 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Fri, 9 Jun 2017 17:12:56 +0300 Message-Id: <20170609141256.27374-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.11.0 Cc: Praneeth Bajjuri , Tom Rini Subject: [U-Boot] [PATCH] arm: am57xx: Keep environment in eMMC X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Use eMMC (instead of SD card) to store U-Boot environment. Use "reserved" partition for U-Boot environment. Signed-off-by: Sam Protsenko Reviewed-by: Tom Rini --- include/configs/am57xx_evm.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h index af19098727..7a42d79647 100644 --- a/include/configs/am57xx_evm.h +++ b/include/configs/am57xx_evm.h @@ -13,6 +13,7 @@ #define __CONFIG_AM57XX_EVM_H #include +#include #ifdef CONFIG_SPL_BUILD #define CONFIG_IODELAY_RECALIBRATION @@ -20,11 +21,14 @@ #define CONFIG_NR_DRAM_BANKS 2 -#define CONFIG_ENV_SIZE (64 << 10) -#define CONFIG_ENV_IS_IN_FAT -#define FAT_ENV_INTERFACE "mmc" -#define FAT_ENV_DEVICE_AND_PART "0:1" -#define FAT_ENV_FILE "uboot.env" +/* MMC ENV related defines */ +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 1 /* eMMC */ +#define CONFIG_SYS_MMC_ENV_PART 0 +#define CONFIG_ENV_SIZE SZ_128K +#define CONFIG_ENV_OFFSET 0x260000 +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT #define CONSOLEDEV "ttyO2" #define CONFIG_SYS_NS16550_COM1 UART1_BASE /* Base EVM has UART0 */