blob: 35337a3ba52c4a91e8cbe1fb61b0c07b33064e9f [file] [log] [blame]
Edward A. Jamesfd6f07c2017-08-15 14:18:12 -05001From ba7cf47befb92e2565bf6169ccc5b766647de222 Mon Sep 17 00:00:00 2001
2From: "Edward A. James" <eajames@us.ibm.com>
3Date: Thu, 13 Jul 2017 13:42:18 -0500
4Subject: [PATCH u-boot] configs/ast: Add redundnant env
5
6Configure ast chips to run redundant u-boot environments.
7
8Signed-off-by: Edward A. James <eajames@us.ibm.com>
9---
10 include/configs/ast-common.h | 5 ++++-
11 1 file changed, 4 insertions(+), 1 deletion(-)
12
13diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
14index 110c780..15e1db4 100644
15--- a/include/configs/ast-common.h
16+++ b/include/configs/ast-common.h
17@@ -92,9 +92,12 @@
18 #define CONFIG_SYS_MAX_FLASH_SECT (8192) /* max number of sectors on one chip */
19 #define CONFIG_ENV_IS_IN_FLASH 1
20 #define CONFIG_ENV_ADDR (AST_FMC_CS0_BASE + 0x60000)
21+#define CONFIG_ENV_ADDR_REDUND (AST_FMC_CS0_BASE + 0x70000)
22
23 #define CONFIG_ENV_OFFSET 0x60000 /* environment starts here */
24-#define CONFIG_ENV_SIZE 0x20000 /* Total Size of Environment Sector */
25+#define CONFIG_ENV_OFFSET_REDUND 0x70000
26+#define CONFIG_ENV_SIZE 0x10000 /* Total Size of Environment Sector */
27+#define CONFIG_ENV_SIZE_REDUND 0x10000
28
29 #define CONFIG_BOOTCOMMAND \
30 "fdt addr 20080000; " \
31--
321.8.3.1
33