From patchwork Tue May 2 18:27:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 757773 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wHVLh4JDZz9s7j for ; Wed, 3 May 2017 04:34:20 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 57BECC21CBC; Tue, 2 May 2017 18:32:01 +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.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 DFA10C21CE4; Tue, 2 May 2017 18:28:30 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9E3DDC21CBB; Tue, 2 May 2017 18:28:21 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by lists.denx.de (Postfix) with ESMTPS id 1AB53C21C4E for ; Tue, 2 May 2017 18:28:16 +0000 (UTC) Received: from mail.nefkom.net (unknown [192.168.6.184]) by mail-out.m-online.net (Postfix) with ESMTP id 3wHVCg6crqz1qtxZ; Tue, 2 May 2017 20:28:15 +0200 (CEST) X-Auth-Info: HXHXXlC0bJPCv5ApSlhCudSnD0IqfaFwv6bB3x4Rtbs= Received: from kurokawa.lan (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id 3wHVCg4Pw2zvdWQ; Tue, 2 May 2017 20:28:15 +0200 (CEST) From: Marek Vasut To: u-boot@lists.denx.de Date: Tue, 2 May 2017 20:27:48 +0200 Message-Id: <20170502182750.8907-9-marex@denx.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170502182750.8907-1-marex@denx.de> References: <20170502182750.8907-1-marex@denx.de> MIME-Version: 1.0 Cc: Marek Vasut Subject: [U-Boot] [PATCH 09/11] ARM: at91: ma5d4: Switch environment start to 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The redesigned version of the SoM which was released onto the market does no longer contain SPI flash, but boots from the eMMC. Move the environment storage to the eMMC. Signed-off-by: Marek Vasut Cc: Andreas Bießmann --- include/configs/ma5d4evk.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/include/configs/ma5d4evk.h b/include/configs/ma5d4evk.h index d65ac43096..3c2ef99b8e 100644 --- a/include/configs/ma5d4evk.h +++ b/include/configs/ma5d4evk.h @@ -36,13 +36,12 @@ /* * Environment */ -#define CONFIG_ENV_IS_IN_SPI_FLASH -#define CONFIG_SYS_REDUNDAND_ENVIRONMENT -#define CONFIG_ENV_OFFSET 0x8000 +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE +#define CONFIG_SYS_CONSOLE_ENV_OVERWRITE #define CONFIG_ENV_SIZE 0x4000 -#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) -#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE -#define CONFIG_ENV_SECT_SIZE 0x1000 +#define CONFIG_SYS_MMC_ENV_DEV 0 /* eMMC */ +#define CONFIG_ENV_OFFSET 512 /* just after the MBR */ /* * U-Boot general configurations