diff options
author | Wolfgang Denk <wd@xpert.denx.de> | 2008-10-19 19:54:30 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-21 09:27:53 (GMT) |
commit | 055b12f2ffd7c34eea7e983a0588b24f2e69e0e3 (patch) | |
tree | ed55fc3fcedaec4573ba2c97b4e9b8493d7e287e /board/tqc/tqm8260 | |
parent | 1836881190b3d8a6918b0d64b39fe32bbbdf85d8 (diff) | |
download | u-boot-fsl-qoriq-055b12f2ffd7c34eea7e983a0588b24f2e69e0e3.tar.xz |
TQM8260: environment in flash instead EEPROM, baudrate 115k
Several customers have reported problems with the environment in
EEPROM, including corrupted content after board reset. Probably the
code to prevent I2C Enge Conditions is not working sufficiently.
We move the environment to flash now, which allows to have a backup
copy plus gives much faster boot times.
Also, change the default console initialization to 115200 bps as used
on most other boards.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/tqc/tqm8260')
-rw-r--r-- | board/tqc/tqm8260/flash.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/board/tqc/tqm8260/flash.c b/board/tqc/tqm8260/flash.c index 4a6d538..cabc818 100644 --- a/board/tqc/tqm8260/flash.c +++ b/board/tqc/tqm8260/flash.c @@ -204,7 +204,8 @@ unsigned long flash_init (void) #if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH0_BASE flash_protect (FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE, - CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]); + CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, + &flash_info[0]); #endif #if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CONFIG_ENV_ADDR) @@ -213,7 +214,15 @@ unsigned long flash_init (void) # endif flash_protect (FLAG_PROTECT_SET, CONFIG_ENV_ADDR, - CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0]); + CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, + &flash_info[0]); +#endif + +#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CONFIG_ENV_ADDR_REDUND) + flash_protect (FLAG_PROTECT_SET, + CONFIG_ENV_ADDR_REDUND, + CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SIZE_REDUND - 1, + &flash_info[0]); #endif return (size_b0); |