summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2017-05-02 20:27:48 +0200
committerTom Rini <trini@konsulko.com>2017-06-29 13:30:52 -0400
commitcc6f9deeb0222587193bfd4c7f30b78dbb49fc07 (patch)
tree73dcb2824a128a64d8609ff90f2c55f51bdf4621
parent8997de292a8b0bb54d4a9a93d5d9d2387c22a8b8 (diff)
ARM: at91: ma5d4: Switch environment start to eMMC
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>
-rw-r--r--include/configs/ma5d4evk.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/configs/ma5d4evk.h b/include/configs/ma5d4evk.h
index 69988a8018..c2f918214d 100644
--- a/include/configs/ma5d4evk.h
+++ b/include/configs/ma5d4evk.h
@@ -31,13 +31,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