Commit 57ba8d6ddc5cbad29316fc34aa1a764cac6e7b89
Committed by
Tom Rini
1 parent
ebeda0b117
Exists in
smarc_8mq_lf_v2020.04
and in
18 other branches
arm: am57xx: Keep environment in eMMC
Use eMMC (instead of SD card) to store U-Boot environment. Use "reserved" partition for U-Boot environment. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Lokesh Vutla <lokeshvuta@ti.com>
Showing 1 changed file with 9 additions and 5 deletions Side-by-side Diff
include/configs/am57xx_evm.h
... | ... | @@ -13,6 +13,7 @@ |
13 | 13 | #define __CONFIG_AM57XX_EVM_H |
14 | 14 | |
15 | 15 | #include <environment/ti/dfu.h> |
16 | +#include <linux/sizes.h> | |
16 | 17 | |
17 | 18 | #ifdef CONFIG_SPL_BUILD |
18 | 19 | #define CONFIG_IODELAY_RECALIBRATION |
... | ... | @@ -20,11 +21,14 @@ |
20 | 21 | |
21 | 22 | #define CONFIG_NR_DRAM_BANKS 2 |
22 | 23 | |
23 | -#define CONFIG_ENV_SIZE (64 << 10) | |
24 | -#define CONFIG_ENV_IS_IN_FAT | |
25 | -#define FAT_ENV_INTERFACE "mmc" | |
26 | -#define FAT_ENV_DEVICE_AND_PART "0:1" | |
27 | -#define FAT_ENV_FILE "uboot.env" | |
24 | +/* MMC ENV related defines */ | |
25 | +#define CONFIG_ENV_IS_IN_MMC | |
26 | +#define CONFIG_SYS_MMC_ENV_DEV 1 /* eMMC */ | |
27 | +#define CONFIG_SYS_MMC_ENV_PART 0 | |
28 | +#define CONFIG_ENV_SIZE SZ_128K | |
29 | +#define CONFIG_ENV_OFFSET 0x260000 | |
30 | +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) | |
31 | +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT | |
28 | 32 | |
29 | 33 | #define CONSOLEDEV "ttyO2" |
30 | 34 | #define CONFIG_SYS_NS16550_COM1 UART1_BASE /* Base EVM has UART0 */ |