From: Wolfgang Denk Date: Fri, 9 Jun 2006 19:19:21 +0000 (+0200) Subject: Fix U-Boot enviroenment sector protection on MCC200 board X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5d7022b0418b3aab977ac51dbfd179c296ae442e;p=u-boot.git Fix U-Boot enviroenment sector protection on MCC200 board --- diff --git a/CHANGELOG b/CHANGELOG index dda7676d74..8ea96307f9 100644 --- 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) diff --git a/board/mcc200/mcc200.c b/board/mcc200/mcc200.c index 5fe239f234..87427e4e0d 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);