]> git.sur5r.net Git - u-boot/commitdiff
Fix error in flash protection calculation on MCC200 board.
authorWolfgang Denk <wd@pollux.denx.de>
Mon, 10 Jul 2006 21:22:43 +0000 (23:22 +0200)
committerWolfgang Denk <wd@pollux.denx.de>
Mon, 10 Jul 2006 21:22:43 +0000 (23:22 +0200)
CHANGELOG
board/mcc200/mcc200.c

index d1d1ed39a958e68fa8dde7a01db2d57bf0d19ba8..e3ebba64f8bc4d422bddbf86913b98d84a33f2ff 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,8 @@
 Changes since U-Boot 1.1.4:
 ======================================================================
 
+* Fix error in flash protection calculation on MCC200 board.
+
 * Major PCMCIA Cleanup to make code better readable and maintainable.
   Notes:
   - Board-dependend code for RPXLITE and RPXCLASSIC-based boards
index b9b9a712b8343740b56e23274ca54da0c339bd76..6e2d564c5bc228af47dffa9d1b8f3358855586d2 100644 (file)
@@ -249,7 +249,7 @@ int misc_init_r (void)
                *(volatile int*)MPC5XXX_CS0_CFG |= (1 << 6);
                flash_protect (FLAG_PROTECT_CLEAR,
                               flash_info[0].start[0] + flash_info[0].size / 2,
-                              (flash_info[0].start[0] + flash_info[0].size) / 2 - 1,
+                              (flash_info[0].start[0] - 1) + flash_info[0].size,
                               &flash_info[0]);
                *(volatile int*)MPC5XXX_CS0_CFG &= ~(1 << 6);
        }