diff mbox

[U-Boot,09/11] ARM: at91: ma5d4: Switch environment start to eMMC

Message ID 20170502182750.8907-9-marex@denx.de
State Accepted
Commit cc6f9deeb0222587193bfd4c7f30b78dbb49fc07
Delegated to: Tom Rini
Headers show

Commit Message

Marek Vasut May 2, 2017, 6:27 p.m. UTC
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 <marex@denx.de>
Cc: Andreas Bießmann <andreas.devel@googlemail.com>
---
 include/configs/ma5d4evk.h | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

Comments

Tom Rini June 30, 2017, 1:27 a.m. UTC | #1
On Tue, May 02, 2017 at 08:27:48PM +0200, Marek Vasut wrote:

> 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 <marex@denx.de>
> Cc: Andreas Bießmann <andreas.devel@googlemail.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

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