Skip to content
Snippets Groups Projects
Commit 57ba8d6d authored by Semen Protsenko's avatar Semen Protsenko Committed by Tom Rini
Browse files

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: default avatarSam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: default avatarLokesh Vutla <lokeshvuta@ti.com>
parent ebeda0b1
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#define __CONFIG_AM57XX_EVM_H #define __CONFIG_AM57XX_EVM_H
#include <environment/ti/dfu.h> #include <environment/ti/dfu.h>
#include <linux/sizes.h>
#ifdef CONFIG_SPL_BUILD #ifdef CONFIG_SPL_BUILD
#define CONFIG_IODELAY_RECALIBRATION #define CONFIG_IODELAY_RECALIBRATION
...@@ -20,11 +21,14 @@ ...@@ -20,11 +21,14 @@
#define CONFIG_NR_DRAM_BANKS 2 #define CONFIG_NR_DRAM_BANKS 2
#define CONFIG_ENV_SIZE (64 << 10) /* MMC ENV related defines */
#define CONFIG_ENV_IS_IN_FAT #define CONFIG_ENV_IS_IN_MMC
#define FAT_ENV_INTERFACE "mmc" #define CONFIG_SYS_MMC_ENV_DEV 1 /* eMMC */
#define FAT_ENV_DEVICE_AND_PART "0:1" #define CONFIG_SYS_MMC_ENV_PART 0
#define FAT_ENV_FILE "uboot.env" #define CONFIG_ENV_SIZE SZ_128K
#define CONFIG_ENV_OFFSET 0x260000
#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
#define CONSOLEDEV "ttyO2" #define CONSOLEDEV "ttyO2"
#define CONFIG_SYS_NS16550_COM1 UART1_BASE /* Base EVM has UART0 */ #define CONFIG_SYS_NS16550_COM1 UART1_BASE /* Base EVM has UART0 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment