]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: at91: ma5d4: Switch environment start to eMMC
authorMarek Vasut <marex@denx.de>
Tue, 2 May 2017 18:27:48 +0000 (20:27 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 29 Jun 2017 17:30:52 +0000 (13:30 -0400)
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

index 69988a80185d5514e4cb27ee45de988a129eee5a..c2f918214d1c8250c0c1ada60206848a8632f576 100644 (file)
 /*
  * 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