]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq_ocm: Add support to save environment to EEPROM
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Fri, 14 Mar 2014 13:21:21 +0000 (18:51 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 17 Mar 2014 13:34:16 +0000 (14:34 +0100)
Added support to save enironment to EEPROM for zynq OCM.

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

index 33093655cfabf03c8911fb1daaa295ecb5e87dc6..158379475a7f5f48b8a46b51236b78f94d59c0f4 100644 (file)
 #define CONFIG_ZYNQ_SERIAL_UART1
 #define _CONFIG_CMD_DEFAULT_H
 #define CONFIG_SKIP_LOWLEVEL_INIT
-#define CONFIG_ENV_IS_NOWHERE
 #define CONFIG_SYS_DCACHE_OFF
 #define CONFIG_SYS_ICACHE_OFF
 #define CONFIG_ZYNQ_OCM
 #define CONFIG_ZYNQ_SDHCI0
 #define CONFIG_ZYNQ_QSPI
+#define CONFIG_ZYNQ_EEPROM
 
 #include <configs/zynq-common.h>
 
 #undef CONFIG_FAT_WRITE
 #undef CONFIG_CMD_EXT4
 #undef CONFIG_CMD_EXT4_WRITE
+#undef CONFIG_ENV_IS_IN_SPI_FLASH
+#undef CONFIG_ENV_OFFSET
+#undef CONFIG_ENV_SECT_SIZE
 
 /* Define needed configs */
 #define CONFIG_CMD_MEMORY
 #define CONFIG_BOOTDELAY       -1 /* -1 to Disable autoboot */
 #define CONFIG_SYS_MALLOC_LEN  0x4000
+#define CONFIG_ENV_IS_IN_EEPROM
+#define CONFIG_ENV_OFFSET              0x0
+#define CONFIG_ENV_SECT_SIZE           255
+#define CONFIG_ENV_SIZE                        1000
 
 #define CONFIG_SYS_SDRAM_SIZE          ((256 * 1024) - 32)
 #define CONFIG_SYS_SDRAM_BASE          0xFFFC0000
-#define CONFIG_ENV_SIZE                        1400
 
 #define FAT_BUFF_PTR_OCM               0xFFFC5000
 /* Define the cluster size fat filesystem */