diff options
author | Baruch Siach <baruch@tkos.co.il> | 2018-08-14 18:05:46 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2018-09-19 08:59:26 +0200 |
commit | 7e1d32208e035b3014e8dd83dbe41506327f5d40 (patch) | |
tree | 3280e3f61393cba74b83c2d56cd6037b8b477a6d /include/configs/mvebu_armada-8k.h | |
parent | 9ca6fae9d0588bccba681c4f7ab1926bc32bdbcc (diff) |
arm64: mvebu: armada-8k: support environment in SD/eMMC
Detect the SD/eMMC boot device at run-time. Load the environment from
the boot deice, as well as save to it.
Leave the environment offset the same as in the SPI flash.
Make SD/eMMC 0 the default environment device when the boot device is
not detected.
Cc: Konstantin Porotchkin <kostap@marvell.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/configs/mvebu_armada-8k.h')
-rw-r--r-- | include/configs/mvebu_armada-8k.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configs/mvebu_armada-8k.h b/include/configs/mvebu_armada-8k.h index 93c50488a2..a6636e19e8 100644 --- a/include/configs/mvebu_armada-8k.h +++ b/include/configs/mvebu_armada-8k.h @@ -64,6 +64,9 @@ #define CONFIG_ENV_SIZE (64 << 10) /* 64KiB */ #define CONFIG_ENV_SECT_SIZE (64 << 10) /* 64KiB sectors */ +/* When runtime detection fails this is the default */ +#define CONFIG_SYS_MMC_ENV_DEV 0 + #define CONFIG_SYS_MAX_NAND_DEVICE 1 #define CONFIG_SYS_NAND_MAX_CHIPS 1 #define CONFIG_SYS_NAND_ONFI_DETECTION |