]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Fix U-Boot enviroenment sector protection on MCC200 board
authorWolfgang Denk <wd@pollux.denx.de>
Fri, 9 Jun 2006 19:19:21 +0000 (21:19 +0200)
committerWolfgang Denk <wd@pollux.denx.de>
Fri, 9 Jun 2006 19:19:21 +0000 (21:19 +0200)
CHANGELOG
board/mcc200/mcc200.c

index dda7676d74ec97df7286399e74942d8ac7eff7c7..8ea96307f9bd7a744e0626922f4f16dc4db33a11 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,8 @@
 Changes since U-Boot 1.1.4:
 ======================================================================
 
+* Fix U-Boot enviroenment sector protection on MCC200 board
+
 * Minor cleanup for PCS440EP board
 
 * Update PCS440EP port to fit into one flash device (incl. environment)
index 5fe239f23472c6cfafa8c519bfed9d5940711757..87427e4e0d689418e0a28b514ca1caef8dd9dcc2 100644 (file)
@@ -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);