Joel Stanley | 2fbe1fe | 2018-02-20 16:17:22 +1030 | [diff] [blame^] | 1 | From 8ef2f4dcd208e072ab491874c06722c3a8ec69e3 Mon Sep 17 00:00:00 2001 |
Edward A. James | fd6f07c | 2017-08-15 14:18:12 -0500 | [diff] [blame] | 2 | From: "Edward A. James" <eajames@us.ibm.com> |
| 3 | Date: Thu, 13 Jul 2017 13:42:18 -0500 |
Joel Stanley | 2fbe1fe | 2018-02-20 16:17:22 +1030 | [diff] [blame^] | 4 | Subject: [PATCH 1/4] configs/ast: Add redundnant env |
Edward A. James | fd6f07c | 2017-08-15 14:18:12 -0500 | [diff] [blame] | 5 | |
| 6 | Configure ast chips to run redundant u-boot environments. |
| 7 | |
| 8 | Signed-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 | |
| 13 | diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h |
Joel Stanley | 2fbe1fe | 2018-02-20 16:17:22 +1030 | [diff] [blame^] | 14 | index eff6d2b529..a0243083bd 100644 |
Edward A. James | fd6f07c | 2017-08-15 14:18:12 -0500 | [diff] [blame] | 15 | --- a/include/configs/ast-common.h |
| 16 | +++ b/include/configs/ast-common.h |
Joel Stanley | 2fbe1fe | 2018-02-20 16:17:22 +1030 | [diff] [blame^] | 17 | @@ -104,9 +104,12 @@ |
Edward A. James | fd6f07c | 2017-08-15 14:18:12 -0500 | [diff] [blame] | 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 | |
Joel Stanley | 2fbe1fe | 2018-02-20 16:17:22 +1030 | [diff] [blame^] | 29 | #define CONFIG_BOOTCOMMAND "bootm 20080000" |
| 30 | #define CONFIG_ENV_OVERWRITE |
Edward A. James | fd6f07c | 2017-08-15 14:18:12 -0500 | [diff] [blame] | 31 | -- |
Joel Stanley | 2fbe1fe | 2018-02-20 16:17:22 +1030 | [diff] [blame^] | 32 | 2.14.3 |
Edward A. James | fd6f07c | 2017-08-15 14:18:12 -0500 | [diff] [blame] | 33 | |