summaryrefslogtreecommitdiff
path: root/board/sx1
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-03-12 15:38:25 +0000
committerwdenk <wdenk>2004-03-12 15:38:25 +0000
commit6629d2f22b4af180dc41defe2396bafcd8fe4093 (patch)
tree8a077cb1081e6589928fcb5a3730b8ce275357c9 /board/sx1
parentbdda519d3c574b298f8c832a7b86df726b957f60 (diff)
downloadu-boot-imx-6629d2f22b4af180dc41defe2396bafcd8fe4093.zip
u-boot-imx-6629d2f22b4af180dc41defe2396bafcd8fe4093.tar.gz
u-boot-imx-6629d2f22b4af180dc41defe2396bafcd8fe4093.tar.bz2
SX1 patches: use "serial#" for USB serial #;
use redundand environment storage; auto-set console on USB port (using preboot command)
Diffstat (limited to 'board/sx1')
-rw-r--r--board/sx1/flash.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/sx1/flash.c b/board/sx1/flash.c
index a4bed61..1373406 100644
--- a/board/sx1/flash.c
+++ b/board/sx1/flash.c
@@ -26,6 +26,7 @@
#include <common.h>
#include <linux/byteorder/swab.h>
+#include <environment.h>
#define PHYS_FLASH_SECT_SIZE 0x00020000 /* 256 KB sectors (x2) */
flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
@@ -94,6 +95,13 @@ unsigned long flash_init (void)
CFG_ENV_ADDR + CFG_ENV_SIZE - 1,
&flash_info[0]);
+#ifdef CFG_ENV_ADDR_REDUND
+ flash_protect ( FLAG_PROTECT_SET,
+ CFG_ENV_ADDR_REDUND,
+ CFG_ENV_ADDR_REDUND + CFG_ENV_SIZE_REDUND - 1,
+ &flash_info[0]);
+#endif
+
return size;
}