From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lokesh Vutla Date: Tue, 8 Mar 2016 17:12:30 +0530 Subject: [U-Boot] [PATCH 6/6] arm: am57xx: Keep environment in eMMC In-Reply-To: <1457437348-31327-7-git-send-email-semen.protsenko@linaro.org> References: <1457437348-31327-1-git-send-email-semen.protsenko@linaro.org> <1457437348-31327-7-git-send-email-semen.protsenko@linaro.org> Message-ID: <56DEBAA6.2040305@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday 08 March 2016 05:12 PM, Semen Protsenko wrote: > From: Sam Protsenko > > Use eMMC (instead of SD card) to store U-Boot environment. Any specific reason why you want this change? Thanks and regards, Lokesh > > Signed-off-by: Sam Protsenko > --- > include/configs/am57xx_evm.h | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h > index 1ab9498..f467f46 100644 > --- a/include/configs/am57xx_evm.h > +++ b/include/configs/am57xx_evm.h > @@ -22,11 +22,13 @@ > > #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 /* SLOT2: eMMC(1) */ > +#define CONFIG_ENV_SIZE (128 << 10) > +#define CONFIG_ENV_OFFSET 0xE0000 > +#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 */ >