summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG2
-rw-r--r--board/mcc200/mcc200.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 79dfde5..3b81ff6 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -23,6 +23,8 @@ Changes since U-Boot 1.1.4:
-Fix mini-app stubs and force no small data
Patch by Scott McNutt, 08 Jun 2006
+* Fix U-Boot environment sector protection on MCC200 board
+
* Minor cleanup for PCS440EP board
* Update PCS440EP port to fit into one flash device (incl. environment)
diff --git a/board/mcc200/mcc200.c b/board/mcc200/mcc200.c
index 5fe239f..87427e4 100644
--- a/board/mcc200/mcc200.c
+++ b/board/mcc200/mcc200.c
@@ -242,7 +242,7 @@ int misc_init_r (void)
/* Unprotect the upper bank of the Flash */
*(volatile int*)MPC5XXX_CS0_CFG |= (1 << 6);
flash_protect (FLAG_PROTECT_CLEAR,
- flash_info[0].start[0],
+ flash_info[0].start[0] + flash_info[0].size / 2,
(flash_info[0].start[0] + flash_info[0].size) / 2 - 1,
&flash_info[0]);
*(volatile int*)MPC5XXX_CS0_CFG &= ~(1 << 6);