]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM64: zynqmp: Add support to save env to FAT
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Fri, 18 Nov 2016 04:57:48 +0000 (10:27 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 10 Jan 2017 09:18:11 +0000 (10:18 +0100)
Add support to save environment as a file of FAT filesystem
on to SD card. The file will be saved with name uEnv.txt.
This environment will be retrieved during boot.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/xilinx_zynqmp.h

index 61cd1472b87a97b0f835eb1e766743a941924514..e0343a3c89f229575c1424caea6c95225ec7be1a 100644 (file)
 # ifndef CONFIG_ZYNQ_SDHCI_MAX_FREQ
 #  define CONFIG_ZYNQ_SDHCI_MAX_FREQ   200000000
 # endif
+# define CONFIG_ENV_IS_IN_FAT
+# define FAT_ENV_DEVICE_AND_PART       "0:auto"
+# define FAT_ENV_FILE                  "uboot.env"
+# define FAT_ENV_INTERFACE             "mmc"
 #endif
 
 #if defined(CONFIG_ZYNQ_SDHCI) || defined(CONFIG_ZYNQMP_USB)
 #define CONFIG_BOARD_LATE_INIT
 
 /* Do not preserve environment */
+#if !defined(CONFIG_ENV_IS_IN_FAT)
 #define CONFIG_ENV_IS_NOWHERE          1
+#endif
 #define CONFIG_ENV_SIZE                        0x8000
 
 /* Monitor Command Prompt */